
com.tencent.ads.model.CustomerSystemStatus 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;
/**
* 客户系统状态,详见 <a href='api_customer_system_status'
* target='_blank'>[客户系统状态]</a>
*/
@JsonAdapter(CustomerSystemStatus.Adapter.class)
public enum CustomerSystemStatus {
NORMAL("CUSTOMER_STATUS_NORMAL"),
PENDING("CUSTOMER_STATUS_PENDING"),
DENIED("CUSTOMER_STATUS_DENIED"),
FROZEN("CUSTOMER_STATUS_FROZEN"),
TOBE_ACCEPTED("CUSTOMER_STATUS_TOBE_ACCEPTED"),
TOBE_ACTIVATED("CUSTOMER_STATUS_TOBE_ACTIVATED"),
SUSPEND("CUSTOMER_STATUS_SUSPEND"),
MATERIAL_PREPARED("CUSTOMER_STATUS_MATERIAL_PREPARED"),
DELETED("CUSTOMER_STATUS_DELETED"),
FROZEN_TEMPORARILY("CUSTOMER_STATUS_FROZEN_TEMPORARILY"),
UNREGISTERED("CUSTOMER_STATUS_UNREGISTERED");
private String value;
CustomerSystemStatus(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static CustomerSystemStatus fromValue(String text) {
for (CustomerSystemStatus b : CustomerSystemStatus.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 CustomerSystemStatus enumeration)
throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public CustomerSystemStatus read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return CustomerSystemStatus.fromValue(String.valueOf(value));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy