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

com.aliyun.mns.model.MessageSystemPropertyValue Maven / Gradle / Ivy

Go to download

Aliyun Message and Notification Service SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

There is a newer version: 1.3.1
Show newest version
package com.aliyun.mns.model;

/**
 * @author haolong
 */
public class MessageSystemPropertyValue implements AbstractMessagePropertyValue {
    private SystemPropertyType dataType;
    private String stringValue;

    public MessageSystemPropertyValue(SystemPropertyType type, String value) {
        if (type == null || value == null) {
            throw new IllegalArgumentException("type and value can not be null");
        }
        this.dataType = type;
        this.stringValue = value;
    }

    @Override
    public String toString() {
        return "MessageSystemPropertyValue{" +
            "dataType=" + dataType +
            ", stringValue='" + stringValue + '\'' +
            '}';
    }

    @Override
    public String getStringValueByType() {
        return stringValue;
    }

    @Override
    public String getDataTypeString() {
        return dataType.name();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy