public static KeyValuePair <string, object>[] GetAllPartyAttributes(PartyId partyId) { string[] strArray; if (partyId == null) { return(new KeyValuePair <string, object> [0]); } BattleNet.GetAllPartyAttributes(partyId.ToDllEntityId(), out strArray); KeyValuePair <string, object>[] pairArray = new KeyValuePair <string, object> [strArray.Length]; for (int i = 0; i < pairArray.Length; i++) { string attributeKey = strArray[i]; object obj2 = null; long? partyAttributeLong = GetPartyAttributeLong(partyId, attributeKey); if (partyAttributeLong.HasValue) { obj2 = partyAttributeLong; } string partyAttributeString = GetPartyAttributeString(partyId, attributeKey); if (partyAttributeString != null) { obj2 = partyAttributeString; } byte[] partyAttributeBlob = GetPartyAttributeBlob(partyId, attributeKey); if (partyAttributeBlob != null) { obj2 = partyAttributeBlob; } pairArray[i] = new KeyValuePair <string, object>(attributeKey, obj2); } return(pairArray); }
public static void DissolveParty(PartyId partyId) { if (IsInParty(partyId)) { BattleNet.DissolveParty(partyId.ToDllEntityId()); } }
public static int CountMembers(PartyId partyId) { if (partyId == null) { return(0); } return(BattleNet.GetCountPartyMembers(partyId.ToDllEntityId())); }
public static InviteRequest[] GetInviteRequests(PartyId partyId) { InviteRequest[] requestArray; if (partyId == null) { return(new InviteRequest[0]); } BattleNet.GetPartyInviteRequests(partyId.ToDllEntityId(), out requestArray); return(requestArray); }
public static void ClearPartyAttribute(PartyId partyId, string attributeKey) { BattleNet.ClearPartyAttribute(partyId.ToDllEntityId(), attributeKey); }