ServerVariable.java 771 B

1234567891011121314151617181920212223
  1. package com.bytedance.ads;
  2. import java.util.HashSet;
  3. /**
  4. * Representing a Server Variable for server URL template substitution.
  5. */
  6. public class ServerVariable {
  7. public String description;
  8. public String defaultValue;
  9. public HashSet<String> enumValues = null;
  10. /**
  11. * @param description A description for the server variable.
  12. * @param defaultValue The default value to use for substitution.
  13. * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set.
  14. */
  15. public ServerVariable(String description, String defaultValue, HashSet<String> enumValues) {
  16. this.description = description;
  17. this.defaultValue = defaultValue;
  18. this.enumValues = enumValues;
  19. }
  20. }