/// <summary>
        /// Removes a member group&#39;s sharing permissions for a template. Removes a member group&#39;s sharing permissions for a specified template.
        /// </summary>
	    ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param><param name="templatePart">Currently, the only defined part is **groups**.</param> <param name="groupInformation">TBD Description</param>
		/// <returns>8Task of ApiResponse (GroupInformation)</returns>
        public async System.Threading.Tasks.Task<ApiResponse<GroupInformation>> DeleteGroupShareAsyncWithHttpInfo (string accountId, string templateId, string templatePart, GroupInformation groupInformation)
        {
            // verify the required parameter 'accountId' is set
            if (accountId == null) throw new ApiException(400, "Missing required parameter 'accountId' when calling DeleteGroupShare");
            // verify the required parameter 'templateId' is set
            if (templateId == null) throw new ApiException(400, "Missing required parameter 'templateId' when calling DeleteGroupShare");
            // verify the required parameter 'templatePart' is set
            if (templatePart == null) throw new ApiException(400, "Missing required parameter 'templatePart' when calling DeleteGroupShare");
            
    
            var path_ = "/v2/accounts/{accountId}/templates/{templateId}/{templatePart}";
    
            var pathParams = new Dictionary<String, String>();
            var queryParams = new Dictionary<String, String>();
            var headerParams = new Dictionary<String, String>();
            var formParams = new Dictionary<String, String>();
            var fileParams = new Dictionary<String, FileParameter>();
            String postBody = null;

            // to determine the Accept header
            String[] http_header_accepts = new String[] {
                "application/json"
            };
            String http_header_accept = Configuration.ApiClient.SelectHeaderAccept(http_header_accepts);
            if (http_header_accept != null)
                headerParams.Add("Accept", Configuration.ApiClient.SelectHeaderAccept(http_header_accepts));

            // set "format" to json by default
            // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
            pathParams.Add("format", "json");
            if (accountId != null) pathParams.Add("accountId", Configuration.ApiClient.ParameterToString(accountId)); // path parameter
            if (templateId != null) pathParams.Add("templateId", Configuration.ApiClient.ParameterToString(templateId)); // path parameter
            if (templatePart != null) pathParams.Add("templatePart", Configuration.ApiClient.ParameterToString(templatePart)); // path parameter
            

						
			
			

            
            
            postBody = Configuration.ApiClient.Serialize(groupInformation); // http body (model) parameter
            

            

            // make the HTTP request
            IRestResponse response = (IRestResponse) await Configuration.ApiClient.CallApiAsync(path_, Method.DELETE, queryParams, postBody, headerParams, formParams, fileParams, pathParams);

            int statusCode = (int) response.StatusCode;
 
            if (statusCode >= 400)
                throw new ApiException (statusCode, "Error calling DeleteGroupShare: " + response.Content, response.Content);
            else if (statusCode == 0)
                throw new ApiException (statusCode, "Error calling DeleteGroupShare: " + response.ErrorMessage, response.ErrorMessage);

            return new ApiResponse<GroupInformation>(statusCode,
                response.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                (GroupInformation) Configuration.ApiClient.Deserialize(response, typeof(GroupInformation)));
            
        }
        /// <summary>
        /// Removes a member group&#39;s sharing permissions for a template. Removes a member group&#39;s sharing permissions for a specified template.
        /// </summary>
 	    ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param><param name="templatePart">Currently, the only defined part is **groups**.</param> <param name="groupInformation">TBD Description</param>
		/// <returns>5GroupInformation</returns>
        public GroupInformation DeleteGroupShare (string accountId, string templateId, string templatePart, GroupInformation groupInformation)
        {
             ApiResponse<GroupInformation> response = DeleteGroupShareWithHttpInfo(accountId, templateId, templatePart, groupInformation);
             return response.Data;
        }
        /// <summary>
        /// Removes a member group&#39;s sharing permissions for a template. Removes a member group&#39;s sharing permissions for a specified template.
        /// </summary>
 	    ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param><param name="templatePart">Currently, the only defined part is **groups**.</param> <param name="groupInformation">TBD Description</param>
		/// <returns>7Task of GroupInformation</returns>
        public async System.Threading.Tasks.Task<GroupInformation> DeleteGroupShareAsync (string accountId, string templateId, string templatePart, GroupInformation groupInformation)
        {
             ApiResponse<GroupInformation> response = await DeleteGroupShareAsyncWithHttpInfo(accountId, templateId, templatePart, groupInformation);
             return response.Data;

        }
예제 #4
0
        static void ReadMOGI(BinaryReader br, WMORoot wmo)
        {
            wmo.GroupInformation = new GroupInformation[wmo.Header.GroupCount];

            for (int i = 0; i < wmo.GroupInformation.Length; i++)
            {
                var g = new GroupInformation {
                                                 Flags = (WMOGroupFlags) br.ReadUInt32(),
                                                 BoundingBox = new BoundingBox(br.ReadWMOVector3(), br.ReadWMOVector3()),
                                                 NameIndex = br.ReadInt32()
                                             };

                wmo.GroupInformation[i] = g;
            }
        }