protected void Page_Load(object sender, EventArgs e) { RetriveParameters(); if (!IsPostBack) { LoadDefault(); //lblUploadedFileName.Text = ""; if (Request.QueryString["GroupId"] != string.Empty) { try { var id = GeneralFunctions.DecryptQueryString(Request.QueryString["GroupId"]); var pid = Convert.ToInt32(id); if (pid > 0) { PartyId = pid; LoadData(pid); } } catch { } } } CheckUserAccess(PartyId.ToString()); }
public static void DissolveParty(PartyId partyId) { if (IsInParty(partyId)) { BattleNet.DissolveParty(partyId.ToDllEntityId()); } }
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 Group UpdateUserGroup(PartyId partyId, string description, Dictionary <int, bool> customActions) { try { using (var scope = new TransactionScope()) { var ug = userRep.GetUserGroupById(partyId); //var validSelectedActions = // ActionType.GetAll<ActionType>() // .Where(c => customActions.Keys.Contains(int.Parse(c.Value))) // .ToList(); //var validCustomActions = validSelectedActions.ToDictionary(c => c, // c => customActions[int.Parse(c.Value)]); var validSelectedActions = ActionTypeHelper.SelectActionTypes(customActions.Keys); var validCustomActions = validSelectedActions.ToDictionary(c => c, c => customActions[(int)c]); ug.Update(description, validCustomActions); scope.Complete(); return(ug); } } catch (Exception exp) { var res = userRep.TryConvertException(exp); if (res == null) { throw; } throw res; } }
private void SaveParty() { var result = new PartyBLL().SaveParty(ExtractData(), Mode); if (result > 0) { PartyId = result; if (KYCUpload.HasFile) { var fileName = KYCUpload.FileName; var filext = fileName.Substring(fileName.LastIndexOf(".") + 1); if (filext.ToLower() != "pdf") { ScriptManager.RegisterStartupScript(this, typeof(Page), "alert", "<script>javascript:void alert('Only pdf file is accepted!');</script>", false); return; } var path = Server.MapPath("~/Forwarding/KYCUploads"); var newFileName = "KYC" + PartyId.ToString().TrimEnd(); // Guid.NewGuid().ToString(); if (!string.IsNullOrEmpty(path)) { path += @"\" + newFileName + System.IO.Path.GetExtension(fileName); hdnKYCPath.Value = path; KYCUpload.PostedFile.SaveAs(path); } } Response.Redirect("~/Forwarding/Master/ManageParties.aspx"); } else { GeneralFunctions.RegisterAlertScript(this, "Error Occured"); } }
public override int GetHashCode() { unchecked { return(ContactId.GetHashCode() * 27 * PartyId.GetHashCode()); } }
public User AddUser(PartyId partyId, string firstName, string lastName, string email, bool isActive , Dictionary <int, bool> customActions, List <PartyId> groups, List <PartyId> permittedWorkListUsers) { try { using (var scope = new TransactionScope()) { var u = new User(partyId, firstName, lastName, email, isActive); assignCustomActionsToParty(u, customActions); assignUserGroupsToUser(u, groups); assignWorkListUsersToUser(u, permittedWorkListUsers); userRep.Add(u); scope.Complete(); return(u); } } catch (Exception exp) { var res = userRep.TryConvertException(exp); if (res == null) { throw; } throw res; } }
/// <summary> /// Return a JSON representation of this object. /// </summary> /// <param name="CustomTariffSerializer">A delegate to serialize custom tariff JSON objects.</param> /// <param name="CustomTariffElementSerializer">A delegate to serialize custom tariff element JSON objects.</param> /// <param name="CustomPriceComponentSerializer">A delegate to serialize custom price component JSON objects.</param> /// <param name="CustomTariffRestrictionsSerializer">A delegate to serialize custom tariff restrictions JSON objects.</param> public JObject ToJSON(CustomJObjectSerializerDelegate <Tariff> CustomTariffSerializer = null, CustomJObjectSerializerDelegate <TariffElement> CustomTariffElementSerializer = null, CustomJObjectSerializerDelegate <PriceComponent> CustomPriceComponentSerializer = null, CustomJObjectSerializerDelegate <TariffRestrictions> CustomTariffRestrictionsSerializer = null) { var JSON = JSONObject.Create( new JProperty("country_code", CountryCode.ToString()), new JProperty("party_id", PartyId.ToString()), new JProperty("id", Id.ToString()), new JProperty("currency", Currency.ToString()), TariffType.HasValue ? new JProperty("type", TariffType.Value.ToString()) : null, TariffAltText.SafeAny() ? new JProperty("tariff_alt_text", new JArray(TariffAltText.Select(tariffAltText => tariffAltText.ToJSON()))) : null, TariffAltURL.HasValue ? new JProperty("tariff_alt_url", TariffAltURL.ToString()) : null, MinPrice.HasValue ? new JProperty("min_price", MinPrice.Value.ToJSON()) : null, MaxPrice.HasValue ? new JProperty("max_price", MaxPrice.Value.ToJSON()) : null, TariffElements.SafeAny() ? new JProperty("elements", new JArray(TariffElements.Select(tariffElement => tariffElement.ToJSON(CustomTariffElementSerializer, CustomPriceComponentSerializer, CustomTariffRestrictionsSerializer)))) : null, Start.HasValue ? new JProperty("start_date_time", Start.Value.ToIso8601()) : null, End.HasValue ? new JProperty("end_date_time", End.Value.ToIso8601()) : null, EnergyMix != null ? new JProperty("energy_mix", EnergyMix.ToJSON()) : null, new JProperty("last_updated", LastUpdated.ToIso8601()) ); return(CustomTariffSerializer != null ? CustomTariffSerializer(this, JSON) : JSON); }
public static int CountMembers(PartyId partyId) { if (partyId == null) { return(0); } return(BattleNet.GetCountPartyMembers(partyId.ToDllEntityId())); }
public void UpdateUserProfile(PartyId partyId, string email) { using (var scope = new TransactionScope()) { var u = userRep.GetUserById(partyId); ((User)u).UpdateProfile(email, emailManager); scope.Complete(); } }
public static InviteRequest[] GetInviteRequests(PartyId partyId) { InviteRequest[] requestArray; if (partyId == null) { return(new InviteRequest[0]); } BattleNet.GetPartyInviteRequests(partyId.ToDllEntityId(), out requestArray); return(requestArray); }
public User UpdateUser(PartyId partyId, string firstName, string lastName, string email) { using (var scope = new TransactionScope()) { var u = userRep.GetUserById(partyId); u.Update(firstName, lastName, email); scope.Complete(); return(u); } }
public User AddUser(PartyId partyId, string firstName, string lastName, string email) { using (var scope = new TransactionScope()) { var u = new User(partyId, firstName, lastName, email); userRep.Add(u); scope.Complete(); return(u); } }
public void SendCommand(string commandToSend) { using (WSSessionSabre session = new WSSessionSabre()) { try { session.OpenConnection(); if (session.IsConnected) { SabreCommandLLSService service = new SabreCommandLLSService(); service.MessageHeaderValue = new MessageHeader(); service.MessageHeaderValue.ConversationId = session.ConversationId; service.MessageHeaderValue.Action = "SabreCommandLLSRQ"; service.MessageHeaderValue.CPAId = session.IPcc; service.MessageHeaderValue.From = new From(); From from = new From(); PartyId partyId = new PartyId(); partyId.Value = "9999"; from.PartyId = new PartyId[] { partyId }; service.MessageHeaderValue.From = from; service.MessageHeaderValue.To = new To(); To to = new To(); PartyId newPartyId = new PartyId(); newPartyId.Value = "123123"; to.PartyId = new PartyId[] { newPartyId }; service.MessageHeaderValue.To = to; service.SecurityValue = new Security(); service.SecurityValue.BinarySecurityToken = session.SecurityToken; SabreCommandLLSRQ request = new SabreCommandLLSRQ(); request.Request = new SabreCommandLLSRQRequest(); request.Request.HostCommand = commandToSend; request.Target = SabreCommandLLSRQTarget.Test; request.Request.Output = SabreCommandLLSRQRequestOutput.SDSXML; request.TimeStamp = new TimeSpan().ToString(); SabreCommandLLSRS response = service.SabreCommandLLSRQ(request); this.ResponseFromServer = response.Response; } } catch (Exception exception) { this.ResponseFromServer = ""; } } }
public User UpdateUser(PartyId partyId, string firstName, string lastName, string email, bool isActive, Dictionary <int, bool> customActions, List <PartyId> groups, List <PartyId> permittedWorkListUsers) { using (var scope = new TransactionScope()) { var u = userRep.GetUserById(partyId); ((User)u).Update(firstName, lastName, email); scope.Complete(); return(u as User); } }
public void UpdateUserAccess(PartyId id, Dictionary <int, bool> customActions) { using (var scope = new TransactionScope()) { User user = userRep.GetUserById(id); user.Actions = new SuperAdminUser(id, "", "", "").Actions; var actionsFromRole = user.Actions; user.UpdateCustomActions(customActions, user.Id, actionsFromRole); scope.Complete(); } }
public override void ExecuteCRMWorkFlowActivity(CodeActivityContext context, LocalWorkflowContext crmWorkflowContext) { crmWorkflowContext.TracingService.Trace("Loaded Supplier Information Workflow Activity"); var supplierInformationUtil = new SupplierInformation(crmWorkflowContext.OrganizationService, crmWorkflowContext.TracingService); var socialInsuranceNumber = SIN.Get(context); if (string.IsNullOrEmpty(socialInsuranceNumber)) { throw new ArgumentNullException("Social Insurance Number cannot be null or blank"); } var supplierInfo = supplierInformationUtil.GetSupplierInformation(SIN.Get(context)); crmWorkflowContext.TracingService.Trace($"SupplierInfo: {supplierInfo.ID}"); if (supplierInfo.ID == Guid.Empty) { crmWorkflowContext.TracingService.Trace("SIN not found in the CAS Supplier Lookup records"); //Populate entity reference with random GUID to avoid the workflow crash. Dynamics Bug. Microsoft needs to make fix. EntityReference CASSupplierLookupRef = new EntityReference("educ_cassupplierlookup", Guid.NewGuid()); CASSupplierRef.Set(context, CASSupplierLookupRef); crmWorkflowContext.TracingService.Trace($"CASSupplierLookupRef: {supplierInfo.ID}"); PartyId.Set(context, -1); } else { EntityReference CASSupplierLookupRef = new EntityReference("educ_cassupplierlookup", supplierInfo.ID); CASSupplierRef.Set(context, CASSupplierLookupRef); crmWorkflowContext.TracingService.Trace($"CASSupplierLookupRef: {supplierInfo.ID}"); PartyId.Set(context, supplierInfo.PartyID); crmWorkflowContext.TracingService.Trace($"PartyID: {supplierInfo.PartyID}"); LastName.Set(context, supplierInfo.LastName); crmWorkflowContext.TracingService.Trace($"Last Found: {supplierInfo.LastName}"); SupplierNumber.Set(context, supplierInfo.SupplierNumber); crmWorkflowContext.TracingService.Trace($"Supplier Number: {supplierInfo.SupplierNumber}"); SiteNumber.Set(context, supplierInfo.SupplierSiteNumber); crmWorkflowContext.TracingService.Trace($"Supplier Site Number: {supplierInfo.SupplierSiteNumber}"); MethodOfPayment.Set(context, supplierInfo.MethodOfPayment); crmWorkflowContext.TracingService.Trace($"Method of Payment: {supplierInfo.MethodOfPayment}"); crmWorkflowContext.TracingService.Trace("Custom Workflow Activity Finished"); } }
private void LoadData(int id) { var src = new PartyBLL().GetParty(id, new SearchCriteria() { StringParams = new List <string>() { "0", "" } }); if (src != null && src.Count() > 0) { var party = src.FirstOrDefault(); txtEmailID.Text = party.emailID; txtContactPerson.Text = party.ContactPerson; txtAddress.Text = party.PartyAddress; txtFAX.Text = party.FAX; txtPAN.Text = party.PAN; txtPartyName.Text = party.PartyName; txtPhone.Text = party.Phone; txtMob.Text = party.Mobile; txtTAN.Text = party.TAN; txtFullName.Text = party.FullName; hdnKYCPath.Value = "KYC" + PartyId.ToString().TrimEnd(); //ddlLine.SelectedValue = party.fLineID.ToString(); ddlPartyType.SelectedValue = party.PartyType.ToString(); ddlGroup.SelectedValue = party.GroupID.ToString(); ddlPrincipal.SelectedValue = party.PrincipalID.ToString(); AutoCompleteCountry1.CountryId = party.CountryID.ToString(); AutoCompleteCountry1.CountryName = party.CountryName; var path = Server.MapPath("~/Forwarding/KYCUploads"); var newFileName = "KYC" + PartyId.ToString().TrimEnd(); // Guid.NewGuid().ToString(); if (!string.IsNullOrEmpty(path)) { path += @"\" + newFileName + ".pdf"; //System.IO.Path.GetExtension(fileName); hdnKYCPath.Value = path; if (File.Exists(path)) { lnkKYCUpload.Enabled = true; lnkKYCUpload.Text = newFileName + ".pdf"; //lblUploadedFileName.Text = newFileName; //lblUploadedFileName.Visible = true; } } } }
/// <summary> /// Return a JSON representation of this object. /// </summary> /// <param name="CustomTokenSerializer">A delegate to serialize custom token JSON objects.</param> /// <param name="CustomEnergyContractSerializer">A delegate to serialize custom energy contract JSON objects.</param> public JObject ToJSON(CustomJObjectSerializerDelegate <Token> CustomTokenSerializer = null, CustomJObjectSerializerDelegate <EnergyContract> CustomEnergyContractSerializer = null) { var JSON = JSONObject.Create( new JProperty("country_code", CountryCode.ToString()), new JProperty("party_id", PartyId.ToString()), new JProperty("uid", Id.ToString()), new JProperty("type", Type.ToString()), new JProperty("contract_id", ContractId.ToString()), VisualNumber.IsNotNullOrEmpty() ? new JProperty("visual_number", VisualNumber) : null, new JProperty("issuer", Issuer), GroupId.HasValue ? new JProperty("group_id", GroupId.ToString()) : null, new JProperty("valid", IsValid), new JProperty("whitelist", WhitelistType.ToString()), UILanguage.HasValue ? new JProperty("language", UILanguage.ToString()) : null, DefaultProfile.HasValue ? new JProperty("default_profile_type", DefaultProfile.ToString()) : null, EnergyContract.HasValue ? new JProperty("energy_contract", EnergyContract.Value.ToJSON(CustomEnergyContractSerializer)) : null, new JProperty("last_updated", LastUpdated.ToIso8601()) ); return(CustomTokenSerializer != null ? CustomTokenSerializer(this, JSON) : JSON); }
internal static void ReplacePartiesInValuationReport(ValuationReport valuationReport, List <PartyIdRangeItem> partyIdList) { if (null == partyIdList) { return; } var listOfParties = new List <Party>(); foreach (PartyIdRangeItem partyIdRangeItem in partyIdList) { Party party = PartyFactory.Create(partyIdRangeItem.IdOrRole); var partyId = new PartyId { Value = partyIdRangeItem.PartyId }; party.partyId = new[] { partyId }; listOfParties.Add(party); } valuationReport.party = listOfParties.ToArray(); }
public MessageHeader Get(string actionName, string headerServiceValue) { //Create the message header and provide the conversation ID. MessageHeader msgHeader = new MessageHeader(); msgHeader.ConversationId = "TestSession"; // Set the ConversationId From from = new From(); PartyId fromPartyId = new PartyId(); PartyId[] fromPartyIdArr = new PartyId[1]; fromPartyId.Value = "WebServiceClient"; fromPartyIdArr[0] = fromPartyId; from.PartyId = fromPartyIdArr; msgHeader.From = from; To to = new To(); PartyId toPartyId = new PartyId(); PartyId[] toPartyIdArr = new PartyId[1]; toPartyId.Value = "WebServiceSupplier"; toPartyIdArr[0] = toPartyId; to.PartyId = toPartyIdArr; msgHeader.To = to; //Add the value for eb:CPAId, which is the IPCC. //Add the value for the action code of this Web service, SessionCreateRQ. msgHeader.CPAId = "4REG"; msgHeader.Action = actionName; Service service = new Service(); service.Value = headerServiceValue; msgHeader.Service = service; MessageData msgData = new MessageData(); msgData.MessageId = "mid:[email protected]"; //msgData.Timestamp = tstamp; msgHeader.MessageData = msgData; return(msgHeader); }
/// <summary> /// Return a JSON representation of this object. /// </summary> /// <param name="Embedded">Whether this data is embedded into another data structure.</param> /// <param name="CustomRemotePartySerializer">A delegate to serialize custom remote party JSON objects.</param> /// <param name="CustomBusinessDetailsSerializer">A delegate to serialize custom business details JSON objects.</param> /// <param name="IncludeCryptoHash">Include the crypto hash value of this object.</param> public JObject ToJSON(Boolean Embedded, CustomJObjectSerializerDelegate <RemoteParty> CustomRemotePartySerializer = null, CustomJObjectSerializerDelegate <BusinessDetails> CustomBusinessDetailsSerializer = null, Boolean IncludeCryptoHash = false) { var JSON = JSONObject.Create( Id.ToJSON("@id"), Embedded ? new JProperty("@context", DefaultJSONLDContext.ToString()) : null, new JProperty("countryCode", CountryCode.ToString()), new JProperty("partyId", PartyId.ToString()), new JProperty("role", Role.ToString()), new JProperty("partyStatus", Status.ToString()), BusinessDetails != null ? new JProperty("businessDetails", BusinessDetails.ToJSON(CustomBusinessDetailsSerializer)) : null, _AccessInfo.SafeAny() ? new JProperty("accessInfos", new JArray(_AccessInfo.SafeSelect(accessInfo => accessInfo.ToJSON()))) : null, _RemoteAccessInfos.SafeAny() ? new JProperty("remoteAccessInfos", new JArray(_RemoteAccessInfos.SafeSelect(remoteAccessInfo => remoteAccessInfo.ToJSON()))) : null, new JProperty("last_updated", LastUpdated.ToIso8601()), IncludeCryptoHash ? new JProperty("sha256Hash", SHA256Hash) : null ); return(CustomRemotePartySerializer != null ? CustomRemotePartySerializer(this, JSON) : JSON); }
/// <summary> /// Return a JSON representation of this object. /// </summary> /// <param name="CustomCredentialsRoleSerializer">A delegate to serialize custom credentials roles JSON objects.</param> /// <param name="CustomBusinessDetailsSerializer">A delegate to serialize custom business details JSON objects.</param> public JObject ToJSON(CustomJObjectSerializerDelegate <CredentialsRole> CustomCredentialsRoleSerializer = null, CustomJObjectSerializerDelegate <BusinessDetails> CustomBusinessDetailsSerializer = null) { var JSON = JSONObject.Create( new JProperty("country_code", CountryCode.ToString()), new JProperty("party_id", PartyId.ToString()), new JProperty("role", Role.ToString()), new JProperty("business_details", BusinessDetails.ToJSON(CustomBusinessDetailsSerializer)) //AllowDowngrades.HasValue // ? new JProperty("allow_downgrades", AllowDowngrades.Value) // : null ); return(CustomCredentialsRoleSerializer != null ? CustomCredentialsRoleSerializer(this, JSON) : JSON); }
private void LoadData() { MoneyReceiptsBLL mrBll = new MoneyReceiptsBLL(); int PartyId; DataTable dt; if (_AdvanceId == 0) { dt = mrBll.GetInvoiceDetailForAdvance(_AdvanceId, _jobid, _PaymentType); txtDate.Text = DateTime.Now.ToShortDateString(); txtJobNo.Text = dt.Rows[0]["JOBNO"].ToString(); txtJobDate.Text = Convert.ToDateTime(dt.Rows[0]["JOBDATE"].ToString()).ToString("dd/MM/yyyy"); hdnJobID.Value = dt.Rows[0]["pk_JobID"].ToString(); } else { dt = mrBll.GetAdvanceforEdit(_AdvanceId, _jobid, _PaymentType); txtChqNo.Text = dt.Rows[0]["ChequeNo"].ToString(); txtChqDate.Text = dt.Rows[0]["ChequeDate"].ToString().Split(' ')[0]; //ddlParty.SelectedValue = dt.Rows[0]["fk_PartyID"].ToString(); ddlPartyType.SelectedValue = dt.Rows[0]["fk_PartyTypeID"].ToString(); txtJobNo.Text = dt.Rows[0]["JobNo"].ToString(); txtChequeAmt.Text = dt.Rows[0]["ChequePayment"].ToString(); txtCashAmt.Text = dt.Rows[0]["CashPayment"].ToString(); txtBankName.Text = dt.Rows[0]["ChequeBank"].ToString(); txtMRNo.Text = dt.Rows[0]["pmtReference"].ToString(); PartyId = dt.Rows[0]["fk_PartyID"].ToInt(); txtDate.Text = dt.Rows[0]["pmtDate"].ToString().Split(' ')[0]; txtJobDate.Text = dt.Rows[0]["JobDate"].ToString().Split(' ')[0]; txtCurrentAmount.Text = (txtCashAmt.Text.ToDecimal() + txtChequeAmt.Text.ToDecimal()).ToString(); hdnJobID.Value = dt.Rows[0]["fk_JobID"].ToString(); GetPartyValuesSetToDdl(ddlPartyType.SelectedValue.ToInt()); ddlParty.SelectedValue = PartyId.ToString(); } //if (_PaymentType == "C") //{ // ddlParty.SelectedValue = Convert.ToString(dt.Rows[0]["fk_CreditorID"]); // ddlParty.Enabled = false; //} }
public void Delete(PartyId partyId) { try { using (var scope = new TransactionScope()) { var u = userRep.GetById(partyId); userRep.Delete(u); scope.Complete(); } } catch (Exception exp) { var res = userRep.TryConvertException(exp); if (res == null) { throw; } throw res; } }
private MessageHeader CreateMessageHeader() { MessageHeader msgHeader = new MessageHeader(); msgHeader.ConversationId = "TestSession"; From from = new From(); PartyId fromPartyId = new PartyId(); PartyId[] fromPartyIdArr = new PartyId[1]; fromPartyId.Value = "WebServiceClient"; fromPartyIdArr[0] = fromPartyId; from.PartyId = fromPartyIdArr; msgHeader.From = from; To to = new To(); PartyId toPartyId = new PartyId(); PartyId[] toPartyIdArr = new PartyId[1]; toPartyId.Value = "WebServiceSupplier"; toPartyIdArr[0] = toPartyId; to.PartyId = toPartyIdArr; msgHeader.To = to; msgHeader.CPAId = "4REG"; msgHeader.Action = "HotelPropertyDescriptionLLSRQ"; Service service = new Service(); service.Value = "HotelPropertyDescriptionLLSRQ"; msgHeader.Service = service; MessageData msgData = new MessageData(); msgData.MessageId = "mid:[email protected]"; //msgData.Timestamp = tstamp; msgHeader.MessageData = msgData; return(msgHeader); }
public Group AddUserGroup(PartyId partyId, string description, Dictionary <int, bool> customActions) { try { using (var scope = new TransactionScope()) { var ug = new Group(partyId, description); assignCustomActionsToParty(ug, customActions); userRep.Add(ug); scope.Complete(); return(ug); } } catch (Exception exp) { var res = userRep.TryConvertException(exp); if (res == null) { throw; } throw res; } }
public Log(LogId id, string code, LogLevel logLevel, User user, string className, string methodName, string title, string messages) { if (id == null) { throw new ArgumentNullException("id"); } this.id = id; this.code = code; this.logLevel = logLevel; if (user != null) { this.partyId = user.Id; } this.className = className; this.methodName = methodName; this.logDate = DateTime.Now; if (!string.IsNullOrEmpty(title) && title.Length > 200) { this.title = title.Substring(0, 199); } else { this.title = title; } if (!string.IsNullOrEmpty(messages) && messages.Length > 4000) { this.messages = messages.Substring(0, 3999); } else { this.messages = messages; } }
public static void ClearPartyAttribute(PartyId partyId, string attributeKey) { BattleNet.ClearPartyAttribute(partyId.ToDllEntityId(), attributeKey); }
public static void AcceptInviteRequest(PartyId partyId, BnetGameAccountId requestedTargetId) { SendInvite(partyId, requestedTargetId); }