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

com.tencent.ads.model.ShootingSceneOutCount Maven / Gradle / Ivy

/*
 * Marketing API
 * Marketing API
 *
 * OpenAPI spec version: 1.3
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.tencent.ads.model;


import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;

/** 外景数量 */
@JsonAdapter(ShootingSceneOutCount.Adapter.class)
public enum ShootingSceneOutCount {
  _1("SHOOTING_SCENE_OUT_COUNT_1"),

  _2("SHOOTING_SCENE_OUT_COUNT_2"),

  _3("SHOOTING_SCENE_OUT_COUNT_3"),

  _4("SHOOTING_SCENE_OUT_COUNT_4"),

  _5("SHOOTING_SCENE_OUT_COUNT_5"),

  _6("SHOOTING_SCENE_OUT_COUNT_6"),

  _7("SHOOTING_SCENE_OUT_COUNT_7"),

  N("SHOOTING_SCENE_OUT_COUNT_N");

  private String value;

  ShootingSceneOutCount(String value) {
    this.value = value;
  }

  public String getValue() {
    return value;
  }

  @Override
  public String toString() {
    return String.valueOf(value);
  }

  public static ShootingSceneOutCount fromValue(String text) {
    for (ShootingSceneOutCount b : ShootingSceneOutCount.values()) {
      if (String.valueOf(b.value).equals(text)) {
        return b;
      }
    }
    return null;
  }

  public static class Adapter extends TypeAdapter {
    @Override
    public void write(final JsonWriter jsonWriter, final ShootingSceneOutCount enumeration)
        throws IOException {
      jsonWriter.value(enumeration.getValue());
    }

    @Override
    public ShootingSceneOutCount read(final JsonReader jsonReader) throws IOException {
      String value = jsonReader.nextString();
      return ShootingSceneOutCount.fromValue(String.valueOf(value));
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy