Ejemplo n.º 1
0
 public void InitRelationship(RelationshipElement relationshipElement)
 {
     IHaveUnattendedAccess = relationshipElement.ihaveUnattendedAccess;
     TheyHaveUnattendedAccess = relationshipElement.theyHaveUnattendedAccess;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public Relationship(RelationshipElement relationshipElement)
 {
     InitRelationship(relationshipElement);
 }