Пример #1
0
        /// <summary>
        /// Sends a <seealso cref="ChatStateMessage"/> to the given target.
        /// </summary>
        /// <param name="target">Who is the target of this message? E.g. '*****@*****.**'.</param>
        /// <param name="state">The chat state.</param>
        public Task sendChatStateAsync(string target, ChatState state)
        {
            ChatStateMessage chatStateMessage = new ChatStateMessage(target, CONNECTION.account.getFullJid(), state);

            return(CONNECTION.SendAsync(chatStateMessage));
        }
Пример #2
0
 /// <summary>
 /// Sends a ChatStateMessage to the given target.
 /// </summary>
 /// <param name="target">Who is the target of this message? E.g. '*****@*****.**'.</param>
 /// <param name="state">The chat state.</param>
 public async Task sendChatStateAsync(string target, ChatState state)
 {
     ChatStateMessage chatStateMessage = new ChatStateMessage(target, CONNECTION.account.getFullJid(), state);
     await CONNECTION.sendAsync(chatStateMessage);
 }
Пример #3
0
 //--------------------------------------------------------Constructor:----------------------------------------------------------------\\
 #region --Constructors--
 /// <summary>
 /// Basic Constructor
 /// </summary>
 /// <history>
 /// 21/08/2017 Created [Fabian Sauter]
 /// </history>
 public NewChatStateEventArgs(ChatStateMessage message)
 {
     this.STATE = message.getState();
     this.FROM  = Utils.getBareJidFromFullJid(message.getFrom());
     this.TO    = Utils.getBareJidFromFullJid(message.getTo());
 }