All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.leancloud.command.PushAckPacket Maven / Gradle / Ivy

There is a newer version: 8.2.28
Show newest version
package cn.leancloud.command;

import cn.leancloud.Messages;

import java.util.List;

public class PushAckPacket extends CommandPacket {
  List ids;

  public PushAckPacket() {
    this.setCmd("ack");
  }

  public void setMessageIds(List ids) {
    this.ids = ids;
  }

  @Override
  protected Messages.GenericCommand.Builder getGenericCommandBuilder() {
    Messages.GenericCommand.Builder builder = super.getGenericCommandBuilder();
    builder.setAckMessage(getAckCommand());
    return builder;
  }

  protected Messages.AckCommand getAckCommand() {
    Messages.AckCommand.Builder builder = Messages.AckCommand.newBuilder();
    builder.addAllIds(ids);
    return builder.build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy