Пример #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;
 }