public Task MutateBlockUser(Tuple<string, string>[] userIdAndNames, AccountBlockType blockType, BlockActionType status, IPlatformClient client) { return Task.Delay(0); }
public async Task ConnectToMutateBlockUser(HttpClient client, Uri plusBaseUrl, Tuple<string, string>[] userIdAndNames, AccountBlockType blockType, BlockActionType status, string atVal) { var blockUrl = new Uri(plusBaseUrl, "_/socialgraph/mutate/block_user/?_reqid=8260308&rt=j"); var param = string.Format("[[{0}],{1}]", string.Join(",", userIdAndNames.Select(tuple => string.Format("[[null,null,\"{0}\"], \"{1}\"]", tuple.Item1, tuple.Item2))), status == BlockActionType.Add ? "true" : "false"); var postVals = new Dictionary<string, string>() { { "m", param }, { "at", atVal } }; if (blockType == AccountBlockType.Ignore) postVals.Add("i", "1"); await PostStringAsync(client, blockUrl, postVals); }