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

com.squarespace.cldrengine.message.MessageSelectCode Maven / Gradle / Ivy

The newest version!
package com.squarespace.cldrengine.message;

import java.util.List;

import com.google.gson.JsonArray;

public class MessageSelectCode extends MessageCode {

  protected final List arguments;
  protected final List choices;

  public MessageSelectCode(List arguments, List choices) {
    super(MessageOpType.SELECT);
    this.arguments = arguments;
    this.choices = choices;
  }

  public List args() {
    return arguments;
  }

  public List choices() {
    return choices;
  }

  @Override
  protected void _toJson(JsonArray arr) {
    arr.add(arrayOf(arguments));
    arr.add(arrayOf(choices));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy