/// <summary> /// Get the profile of the specified users. /// </summary> /// <param name="index">The index of user</param> /// <param name="profileIds">A list of profile IDs of the users to get the profiles for.</param> public async Task <RuyiNetGetProfilesResponse> GetProfiles(int index, string[] profileIds) { var payload = new RuyiNetProfileIdsRequest() { profileIds = profileIds }; var resp = await mClient.BCService.Script_RunParentScriptAsync("GetProfiles", JsonConvert.SerializeObject(payload), "RUYI", index, token); return(mClient.Process <RuyiNetGetProfilesResponse>(resp)); }
public void GetProfiles(int index, string[] profileIds, RuyiNetTask <RuyiNetGetProfilesResponse> .CallbackType callback) { EnqueueTask(() => { var payload = new RuyiNetProfileIdsRequest() { profileIds = profileIds }; return(mClient.BCService.Script_RunParentScript("GetProfiles", JsonConvert.SerializeObject(payload), "RUYI", index)); }, callback); }