コード例 #1
0
 private void addConversation(string messageGuid, string messageCounter, ConversationInfo converation, string convType)
 {
 }
コード例 #2
0
 public Conversations(ConversationInfo conversation, Context context)
 {
     ConversationsUtil.userFrom = null;
     ConversationsUtil.conversation = conversation;
     startActivity (context);
 }
コード例 #3
0
        private void markMessageRead(ConversationInfo conversation)
        {
            string me = AndroidData.CurrentUser.AccountID.ToString ();
            Queue<MessageDB> msgQ = new Queue<MessageDB> ();
            foreach (MessageDB eachMessageDB in conversation.Messages.Values.Select (s=>s.Message)
                                                        .Where(s=>s.MessageRecipientDBList.Count(t=>t.AccountGuid == me && !t.IsRead) >0 ))
                msgQ.Enqueue (eachMessageDB);

            if (msgQ.Count > 0) {
                LOLMessageClient service = new LOLMessageClient (LOLConstants.DefaultHttpBinding, LOLConstants.LOLMessageEndpoint);
                service.MessageMarkReadCompleted += Service_MessageMarkReadCompleted;
                service.MessageMarkReadAsync (msgQ.Peek ().MessageID, AndroidData.CurrentUser.AccountID, AndroidData.NewDeviceID,
                                                new Guid (AndroidData.ServiceAuthToken), msgQ);
            }
        }