Exemplo n.º 1
0
        /// <summary>
        /// Creates a new instance of NetkoItem.
        /// Highly recommended to use Netko's factory methods instead.
        /// </summary>
        public NetkoItem(Netko netko, int groupId, NetkoRequestInfo requestInfo)
        {
            GroupId      = groupId;
            EventInfo    = new NetkoEvent(this);
            RequestInfo  = new NetkoRequest(requestInfo);
            ResponseInfo = new NetkoResponse(this);

            Initialize();

            // Register the item to Netko updater.
            netko.RegisterItem(this);
        }
Exemplo n.º 2
0
 public NetkoResponse(NetkoItem item)
 {
     this.request = item.Request as NetkoRequest;
 }