private data_getAssociationDefinition_response GetAssociationDefinition(string name, bool isAsync, GetAssociationDefinitionCallback callback, Object state) { var parameterList = new Dictionary<string, string> { { "method", "facebook.data.getAssociationDefinition" } }; Utilities.AddRequiredParameter(parameterList, "name", name); if (isAsync) { SendRequestAsync(parameterList, new FacebookCallCompleted<data_getAssociationDefinition_response>(callback), state); return null; } return SendRequest<data_getAssociationDefinition_response>(parameterList); }
/// <summary> /// Get detailed definition of an association. /// </summary> /// <example> /// <code> /// /// </code> /// </example> /// <param name="name"> Name of the association. </param> /// <param name="callback">The AsyncCallback delegate</param> /// <param name="state">An object containing state information for this asynchronous request</param> /// <returns>An object association information data structure that has: /// name: name of the association; /// * assoc_type: an integer indicating association's type: /// o 1: one-way association, where reverse lookup is not needed; /// o 2: two-way symmetric association, where a backward association (B to A) is always created when a forward association (A to B) is created. /// o 3: two-way asymmetric association, where a backward association (B to A) has different meaning than a forward association (A to B). /// * assoc_info1: object identifier 1's information: /// o alias: name of object identifier 1. /// o object_type: Optional - object type of object identifier 1. /// o unique: Whether each unique object identifier 1 can only appear once in all associations of this type. /// * assoc_info2: object identifier 2's information: /// o alias: name of object identifier 2. /// o object_type: Optional - object type of object identifier 2. /// o unique: Whether each unique object identifier 1 can only appear once in all associations of this type. /// </returns> public data_getAssociationDefinition_response GetAssociationDefinitionAsync(string name, GetAssociationDefinitionCallback callback, Object state) { return GetAssociationDefinition(name, true, callback, state); }