コード例 #1
0
 /// <summary>
 /// Adds one or more tags to one or more objects.
 /// </summary>
 /// <param name="tagIds">A list of the IDs of the tag(s) which should be added to objects.</param>
 /// <param name="searchOptions">The search options.</param>
 public async Task AddTagAsync(IEnumerable <int> tagIds, ApiSearchOptions searchOptions = null) =>
 await _ontraObjects.AddTagAsync((ApiObjectType)_objectTypeId, tagIds, searchOptions);
コード例 #2
0
 /// <summary>
 /// Adds a tag to an object.
 /// </summary>
 /// <param name="id">The id of the object to affect.</param>
 /// <param name="tagId">The ID of the tag which should be added to the object.</param>
 public async Task AddTagAsync(int id, int tagId) =>
 await _ontraObjects.AddTagAsync((ApiObjectType)_objectTypeId, new ApiSearchOptions(id), new[] { tagId }).ConfigureAwait(false);