Esempio n. 1
0
        internal new static PubsubWhisperUser Create(BasePubsubClient client, SelfModel model)
        {
            var entity = new PubsubWhisperUser(client, model.Id);

            entity.Update(model);
            return(entity);
        }
Esempio n. 2
0
        internal virtual void Update(Model model)
        {
            var author = PubsubWhisperUser.Create(Client, model);

            author.Update(model);

            var self = PubsubWhisperUser.Create(Client, model.Recipient);

            self.Update(model.Recipient);

            Author    = author;
            Self      = self;
            Content   = model.Body;
            ThreadId  = model.ThreadId;
            Timestamp = model.SentTimestamp;
        }