Esempio n. 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="message">SDK Message</param>
 /// <param name="id">Message request id</param>
 /// <param name="name">Message request name</param>
 public SdkMessageRequest(SdkMessagePair message, Guid id, string name)
 {
     this.Id            = id;
     this.Name          = name;
     this.MessagePair   = message;
     this.RequestFields = new Dictionary <int, SdkMessageRequestField>();
 }
Esempio n. 2
0
        /// <summary>
        /// Fills an SDK message from a given result
        /// </summary>
        internal void Fill(Result result)
        {
            SdkMessagePair sdkMessagePair;

            if (!this.SdkMessagePairs.ContainsKey(result.SdkMessagePairId))
            {
                sdkMessagePair = new SdkMessagePair(this, result.SdkMessagePairId, result.SdkMessagePairNamespace);
                this._sdkMessagePairs.Add(sdkMessagePair.Id, sdkMessagePair);
            }
            sdkMessagePair = this.SdkMessagePairs[result.SdkMessagePairId];
            sdkMessagePair.Fill(result);
            SdkMessageFilter sdkMessageFilter;

            if (!this.SdkMessageFilters.ContainsKey(result.SdkMessageFilterId))
            {
                sdkMessageFilter = new SdkMessageFilter(result.SdkMessageFilterId);
                this.SdkMessageFilters.Add(result.SdkMessageFilterId, sdkMessageFilter);
            }
            sdkMessageFilter = this.SdkMessageFilters[result.SdkMessageFilterId];
            sdkMessageFilter.Fill(result);
        }