Exemplo n.º 1
0
        /// <summary>
        /// Gets a single list item in a growing object, by its ID.
        /// </summary>
        /// <param name="uri">The URI of the parent object.</param>
        /// <param name="uid">The ID of the element within the list.</param>
        /// <returns>The sent message on success; <c>null</c> otherwise.</returns>
        public virtual EtpMessage <GrowingObjectGet> GrowingObjectGet(string uri, string uid)
        {
            var body = new GrowingObjectGet
            {
                Uri = uri ?? string.Empty,
                Uid = uid ?? string.Empty,
            };

            return(SendRequest(body));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets a single list item in a growing object, by its ID.
        /// </summary>
        /// <param name="uri">The URI of the parent object.</param>
        /// <param name="uid">The ID of the element within the list.</param>
        /// <returns>The message identifier.</returns>
        public long GrowingObjectGet(string uri, string uid)
        {
            var header = CreateMessageHeader(Protocols.GrowingObject, MessageTypes.GrowingObject.GrowingObjectGet);

            var message = new GrowingObjectGet
            {
                Uri = uri,
                Uid = uid
            };

            return(Session.SendMessage(header, message));
        }
 /// <summary>
 /// Handles the GrowingObjectGet message from a store.
 /// </summary>
 /// <param name="header">The message header.</param>
 /// <param name="message">The GrowingObjectGet message.</param>
 protected virtual void HandleGrowingObjectGet(IMessageHeader header, GrowingObjectGet message)
 {
     Notify(OnGrowingObjectGet, header, message);
 }