Esempio n. 1
0
        /// <summary>
        /// Deletes one list item in a growing object.
        /// </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 <GrowingObjectDelete> GrowingObjectDelete(string uri, string uid)
        {
            var body = new GrowingObjectDelete
            {
                Uri = uri ?? string.Empty,
                Uid = uid ?? string.Empty,
            };

            return(SendRequest(body));
        }
Esempio n. 2
0
        /// <summary>
        /// Deletes one list item in a growing object.
        /// </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 GrowingObjectDelete(string uri, string uid)
        {
            var header = CreateMessageHeader(Protocols.GrowingObject, MessageTypes.GrowingObject.GrowingObjectDelete);

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

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