Ejemplo n.º 1
0
        public void Update(UserDescription description)
        {
            Name        = description.Name;
            DisplayName = description.DisplayName;
            Status      = description.Status;
            Relation    = UserRelation.None;
            if (description.Friend ?? false)
            {
                Relation = UserRelation.Friend;
            }
            else if (client.Me == null)
            {
                Relation = UserRelation.Me;
            }

            Changed.SafeInvoke(this, new EventArgs());
        }
Ejemplo n.º 2
0
        public void Update(UserDescription description)
        {
            Name = description.Name;
            DisplayName = description.DisplayName;
            Status = description.Status;
            Relation = UserRelation.None;
            if (description.Friend ?? false)
                Relation = UserRelation.Friend;
            else if (client.Me == null)
                Relation = UserRelation.Me;

            Changed.SafeInvoke(this, new EventArgs());
        }
Ejemplo n.º 3
0
 public User(ChatClient client, UserDescription description)
 {
     this.client = client;
     Update(description);
     client.UserChat += client_UserChat;
 }
Ejemplo n.º 4
0
 public User(ChatClient client, UserDescription description)
 {
     this.client = client;
     Update(description);
     client.UserChat += client_UserChat;
 }