private void CreateObjectType(string name, bool isAsync, CreateObjectTypeCallback callback, Object state) { var parameterList = new Dictionary<string, string> { { "method", "facebook.data.createObjectType" } }; Utilities.AddRequiredParameter(parameterList, "name", name); if (isAsync) { SendRequestAsync<data_createObjectType_response, bool>(parameterList, new FacebookCallCompleted<bool>(callback), state); return; } SendRequest(parameterList); }
/// <summary> /// An object type is like a "table" in SQL terminology, or a "class" in object-oriented programming concepts. Each object type has a unique human-readable "name" that will be used to identify itself throughout the API. Each object type also has a list of properties that one has to define individually. Each property is like a "column" in an SQL table, or a "data member" in an object class. /// </summary> /// <example> /// <code> /// /// </code> /// </example> /// <param name="name">Name of this new object type. This name needs to be unique among all object types and associations defined for this application. This name also needs to be a valid identifier, which is no longer than 32 characters, starting with a letter (a-z) and consisting of only small letters (a-z), numbers (0-9) and/or underscores. </param> /// <param name="callback">The AsyncCallback delegate</param> /// <param name="state">An object containing state information for this asynchronous request</param> public void CreateObjectTypeAsync(string name, CreateObjectTypeCallback callback, Object state) { CreateObjectType(name, true, callback, state); }