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

com.tencent.ads.model.BehaviorInterestTimeWindow 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(BehaviorInterestTimeWindow.Adapter.class)
public enum BehaviorInterestTimeWindow {
  SEVEN_DAY("BEHAVIOR_INTEREST_TIME_WINDOW_SEVEN_DAY"),

  FIFTEEN_DAY("BEHAVIOR_INTEREST_TIME_WINDOW_FIFTEEN_DAY"),

  THIRTY_DAY("BEHAVIOR_INTEREST_TIME_WINDOW_THIRTY_DAY"),

  THREE_MONTH("BEHAVIOR_INTEREST_TIME_WINDOW_THREE_MONTH"),

  SIX_MONTH("BEHAVIOR_INTEREST_TIME_WINDOW_SIX_MONTH"),

  ONE_YEAR("BEHAVIOR_INTEREST_TIME_WINDOW_ONE_YEAR");

  private String value;

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

  public String getValue() {
    return value;
  }

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

  public static BehaviorInterestTimeWindow fromValue(String text) {
    for (BehaviorInterestTimeWindow b : BehaviorInterestTimeWindow.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 BehaviorInterestTimeWindow enumeration)
        throws IOException {
      jsonWriter.value(enumeration.getValue());
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy