public void Update(ContactInfo info, ChadderSource Source) { Name = info.Name; UpdatePublicKey(info.PublicKey); PictureId = info.ProfilePicture; Picture = Source.db.GetPicture(PictureId); }
public static ChadderContact Create(ContactInfo info, ChadderSource Source, bool isTemp = false) { var contact = new ChadderContact() { UserId = info.Id, IsTemporary = isTemp }; contact.Update(info, Source); return(contact); }
public ChadderSource CreateSource(int id) { var source = new ChadderSource(id); if (SourceInstances.ContainsKey(id) == false) { SourceInstances[id] = new List <ChadderSource>(); } SourceInstances[id].Add(source); return(source); }
public ChadderContact(ContactInfo info, ChadderSource Source) { UserId = info.Id; Update(info, Source); }
public ChadderPicture(ChadderSource source) { this.Source = source; }
public ChadderUIHelper() { Source = new ChadderSource(); }
public AwaitUpdate(ChadderSource s, int time = 2000) { s.OnRequestUpdates += source_OnRequestUpdates; Source = s; MaxTime = time; }
public AwaitNotAuthorized(ChadderSource s, int time = 12000) { s.OnNotAuthorized += source_OnNotAuthorized; Source = s; MaxTime = time; }