@Override
  public void writeRequest(IDataWriter writer, IExecutableCommand<List<IAlliance>> argument)
      throws IOException {
    GetAllianceList object = (GetAllianceList) argument;

    // Get fields
    long loginId = object.getLoginId();
    int instanceId = object.getInstanceId();

    // Write fields
    writer.writeLong(loginId);
    writer.writeInt(instanceId);
  }
  @Override
  public IExecutableCommand<List<IAlliance>> readRequest(IDataReader reader) throws IOException {

    // Read fields
    long loginId = reader.readLong();
    int instanceId = reader.readInt();

    // Create object
    GetAllianceList object = new GetAllianceList();
    object.setLoginId(loginId);
    object.setInstanceId(instanceId);
    return object;
  }