private void RemoveAssociations(List<DataAssociation> assocs, string name, bool isAsync, RemoveAssociationsCallback callback, Object state) { var parameterList = new Dictionary<string, string> { { "method", "facebook.data.removeAssociations" } }; //Utilities.AddList(parameterList, "assocs", assocs); Utilities.AddRequiredParameter(parameterList, "name", name); if (isAsync) { SendRequestAsync<data_removeAssociations_response, bool>(parameterList, new FacebookCallCompleted<bool>(callback), state); return; } SendRequest(parameterList); }
/// <summary> /// Removes a list of associations. /// </summary> /// <example> /// <code> /// /// </code> /// </example> /// <param name="assocs">A list of associations to remove. Each of them has: /// * name: string, optional - name of the association; /// * id1: int64, object identifier 1; /// * id2: int64, object identifier 2; </param> /// <param name="name">Optional - default association name if association name is not specified in the list. </param> /// <param name="callback">The AsyncCallback delegate</param> /// <param name="state">An object containing state information for this asynchronous request</param> public void RemoveAssociationsAsync(List<DataAssociation> assocs, string name, RemoveAssociationsCallback callback, Object state) { RemoveAssociations(assocs, name, true, callback, state); }