Пример #1
0
 public Chat(Unpacker unpacker, MessageNode node) : this(new Chain.Index(unpacker), node)
 {
     LastTransactionId = unpacker.UnpackLong();
     LastTimestamp     = unpacker.UnpackLong();
     LastCount         = unpacker.UnpackLong();
     LastViewedCount   = unpacker.UnpackLong();
 }
 public MessageSubmitAccount(KeyStore account, MessageNode node, long receiverAccountId, short receiverKeyIndex, short keyIndex, Chain.Index index, bool requiresSecretKey) : base(node.ServiceNode, keyIndex, index, requiresSecretKey)
 {
     Account         = account;
     FriendAccountId = receiverAccountId;
     FriendKeyIndex  = receiverKeyIndex;
     Node            = node;
 }
Пример #3
0
        public Friend(Unpacker unpacker, MessageNode node)
        {
            var chainId = node.ChainId;

            unpacker.Unpack(out AccountId);
            unpacker.Unpack(_keys, (u) =>
            {
                var key = new PublicServiceAccountKey(AccountId, chainId, u);
                return(key.KeyIndex, key);
            });
Пример #4
0
        public Chat(Chain.Index index, MessageNode node)
        {
            Index    = index;
            Node     = node;
            Download = new SharedAccountIndexTransactionDownload(node.AccountId, index, node.ServiceNode.GetTransactionDownloadManager(MessageServiceInfo.MessageDataChainIndex))
            {
                Count = 20
            };

            (FriendAccountId, FriendKeyIndex, AccountId, KeyIndex) = node.GetFriendAccountId(index);
        }
 public FriendsDownloadEvent(FriendInfo friendInfo, MessageNode node, MessageNodeEventResultTypes resultTypes) : base(node, resultTypes)
 {
     FriendInfo = friendInfo;
 }
Пример #6
0
 public SendInvitationEvent(long accountId, MessageNode node, HeleusClientResponse heleusClientResponse) : base(node, heleusClientResponse)
 {
     AccountId = accountId;
 }
 public InboxRecordDownloadEvent(long accountId, IReadOnlyList <InboxNameRecordInfo> inboxRecords, MessageNode node, MessageNodeEventResultTypes resultTypes) : base(node, resultTypes)
 {
     AccountId    = accountId;
     InboxRecords = inboxRecords ?? new List <InboxNameRecordInfo>();
 }
Пример #8
0
 public InboxRenameEvent(string title, short keyIndex, MessageNode node, HeleusClientResponse heleusClientResponse) : base(node, heleusClientResponse)
 {
     Title    = title;
     KeyIndex = keyIndex;
 }
Пример #9
0
 public MessageNodeClientEvent(MessageNode node, HeleusClientResponse heleusClientResponse) : base(heleusClientResponse)
 {
     Node = node;
 }
Пример #10
0
 public UnfriendEvent(long accountId, MessageNode node, HeleusClientResponse heleusClientResponse) : base(node, heleusClientResponse)
 {
     AccountId = accountId;
 }
Пример #11
0
 public MessageSentEvent(string text, Chain.Index index, MessageNode node, HeleusClientResponse heleusClientResponse) : base(node, heleusClientResponse)
 {
     Text  = text;
     Index = index;
 }
Пример #12
0
 public Friend(long accountId, MessageNode node)
 {
     AccountId = accountId;
     _node     = node;
 }