public static IRequest <CreateRecordRequest, CreateRecordResponse> CreateRecords(IHrbcFieldIdResolver fieldIdResolver, IEnumerable <CreateRecordRequest.Contents> records) { return(CreateRecordRequest.Builder().Append(records).WithFieldIdResolver(fieldIdResolver)); }
public static IRequest <CreateRecordRequest, CreateRecordResponse> CreateRecords(IHrbcFieldIdResolver fieldIdResolver, IEnumerable <CreateRecordRequest.IContentBuilder> records) { return(CreateRecordRequest.Builder().Append(records.Select(builder => builder.Build())).WithFieldIdResolver(fieldIdResolver)); }
public static IRequest <CreateRecordRequest, CreateRecordResponse> CreateRecords(IEnumerable <CreateRecordRequest.Contents> records) { return(CreateRecordRequest.Builder().Append(records).Build()); }
public static IRequest <CreateRecordRequest, CreateRecordResponse> CreateRecords(IEnumerable <CreateRecordRequest.IContentBuilder> records) { return(CreateRecordRequest.Builder().Append(records.Select(builder => builder.Build())).Build()); }
public static IRequest <CreateRecordRequest, CreateRecordResponse> CreateRecords(CreateRecordRequest request) { return(new Request <CreateRecordRequest, CreateRecordResponse>("private.resource.record.create", request)); }
public static IRequest <CreateRecordRequest, CreateRecordResponse> CreateRecords(params CreateRecordRequest.Contents[] records) { return(CreateRecordRequest.Builder().Append(records).Build()); }
public static CreateRecordRequest.IBuilder CreateRecords() { return(CreateRecordRequest.Builder()); }
/// <summary> /// Create a record content builder for this resource id /// </summary> /// <param name="resource">The resource id of the content</param> /// <returns>A record content builder</returns> public static CreateRecordRequest.IContentBuilder ToRecordBuilder(this ResourceId resource) { return(CreateRecordRequest.RecordBuilder(resource)); }
public static IRequest <CreateRecordRequest, CreateRecordResponse> CreateRecords(FieldIdResolver fieldIdResolver, params CreateRecordRequest.IContentBuilder[] records) { return(CreateRecordRequest.Builder().Append(records.Select(builder => builder.Build())).WithFieldIdResolver(fieldIdResolver)); }
public static IRequest <CreateRecordRequest, CreateRecordResponse> CreateRecords(FieldIdResolver fieldIdResolver, params CreateRecordRequest.Contents[] records) { return(CreateRecordRequest.Builder().Append(records).WithFieldIdResolver(fieldIdResolver)); }
public static IRequest <CreateRecordRequest.WithoutResolver, CreateRecordResponse> CreateRecords(IEnumerable <CreateRecordRequest.Contents> records) { return(CreateRecordRequest.Builder().Append(records).WithoutFieldIdResolver()); }