예제 #1
0
        public MessageTemplate(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "message":
                    this._Message = propertyNode.InnerText;
                    continue;

                case "dateFormat":
                    this._DateFormat = propertyNode.InnerText;
                    continue;

                case "assetType":
                    this._AssetType = (OTTAssetType)ParseEnum(typeof(OTTAssetType), propertyNode.InnerText);
                    continue;

                case "sound":
                    this._Sound = propertyNode.InnerText;
                    continue;

                case "action":
                    this._Action = propertyNode.InnerText;
                    continue;

                case "url":
                    this._Url = propertyNode.InnerText;
                    continue;
                }
            }
        }
예제 #2
0
 public MessageTemplateGetRequestBuilder(OTTAssetType assetType)
     : this()
 {
     this.AssetType = assetType;
 }
예제 #3
0
 public static MessageTemplateUpdateRequestBuilder Update(OTTAssetType assetType, MessageTemplate template)
 {
     return(new MessageTemplateUpdateRequestBuilder(assetType, template));
 }
예제 #4
0
 public static MessageTemplateGetRequestBuilder Get(OTTAssetType assetType)
 {
     return(new MessageTemplateGetRequestBuilder(assetType));
 }
예제 #5
0
 public MessageTemplateUpdateRequestBuilder(OTTAssetType assetType, MessageTemplate template)
     : this()
 {
     this.AssetType = assetType;
     this.Template  = template;
 }