private MessageReceipt GetMessageReceipt()
        {
            var filter = new MessageReceiptFilter();

            filter.Recipient.Add(Instance.LoggedInMember);
            filter.Message.Add(this);
            var receipts = Instance.Get.MessageReceipts(filter);

            if (receipts.Count == 1)
            {
                var enumerator = receipts.GetEnumerator();
                enumerator.MoveNext();
                return(enumerator.Current);
            }

            throw new NotRecipientofMessageException();
        }
Пример #2
0
 internal ICollection <MessageReceipt> MessageReceipts(MessageReceiptFilter filter)
 {
     return(Get <MessageReceipt>(filter ?? new MessageReceiptFilter()));
 }