src/main/java/seedu/address/bot/ArkBot.java
private void performCompleteParcel(MessageSender sender, Logic logic, int indexOfParcel,
                                       ReadOnlyParcel retrievedParcel, Long chatId)
                                       throws CommandException, ParseException, TelegramApiException {
        logic.execute(EditCommand.COMMAND_WORD + " "
                + indexOfParcel + BOT_SET_COMPLETED);
        sender.send("Here are the details of the parcel you just completed: \n"
                    + retrievedParcel.toString(), chatId);

    }
/**
     * Abstracted method that performs edits a parcel to completed.
     */
Abstracted method that performs edits a parcel to completed.
Abstracted method that performs edits a parcel to completed .
private void performCompleteParcel(MessageSender sender, Logic logic, int indexOfParcel,
                                       ReadOnlyParcel retrievedParcel, Long chatId)
                                       throws CommandException, ParseException, TelegramApiException {
        logic.execute(EditCommand.COMMAND_WORD + " "
                + indexOfParcel + BOT_SET_COMPLETED);
        sender.send("Here are the details of the parcel you just completed: \n"
                    + retrievedParcel.toString(), chatId);
    }
private void performCompleteParcel ( MessageSender sender , Logic logic , int indexOfParcel , ReadOnlyParcel retrievedParcel , Long chatId ) throws CommandException , ParseException , TelegramApiException { logic . execute ( EditCommand . COMMAND_WORD + " " + indexOfParcel + BOT_SET_COMPLETED ) ; sender . send ( "Here are the details of the parcel you just completed: \n" + retrievedParcel . toString ( ) , chatId ) ; }
Abstracted method that performs edits a parcel to completed.
Abstracted method that performs edits a parcel to completed .