public void InitRelationship(RelationshipElement relationshipElement) { IHaveUnattendedAccess = relationshipElement.ihaveUnattendedAccess; TheyHaveUnattendedAccess = relationshipElement.theyHaveUnattendedAccess; }
private void AddPartyElementToList(PartyElement partyElement, RelationshipElement relationshipElement, Presence presence = null) { var party = GwupeClientAppContext.CurrentAppContext.PartyManager.AddUpdatePartyFromElement(partyElement); // Make sure we update the relationship GwupeClientAppContext.CurrentAppContext.RelationshipManager.AddUpdateRelationship(party.Username, new Relationship(relationshipElement)); // This is to update the party in the background (avatar) ThreadPool.QueueUserWorkItem(state => GwupeClientAppContext.CurrentAppContext.PartyManager.GetParty(partyElement.user, true)); // Now add it to the list AddPartyToList(party, presence); }
public Relationship(RelationshipElement relationshipElement) { InitRelationship(relationshipElement); }