• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Bynder / bynder-c-sharp-sdk / 10998907231

23 Sep 2024 04:58PM UTC coverage: 53.518% (+1.8%) from 51.72%
10998907231

push

github

web-flow
Update workflow dotnet version 8 (#101)

* Update action versions

* Narrow down permissions

* update dotnet version

---------

Co-authored-by: Erik van Brakel <erik.van.brakel@bynder.com>

59 of 131 branches covered (45.04%)

Branch coverage included in aggregate %.

481 of 878 relevant lines covered (54.78%)

2.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/Bynder/Sdk/Query/Asset/ModifyMediaQuery.cs
1
using System.Collections.Generic;
2
using Bynder.Sdk.Api.Converters;
3
using Bynder.Sdk.Query.Decoder;
4

5
namespace Bynder.Sdk.Query.Asset
6
{
7
    /// <summary>
8
    /// Query to modify a media with 
9
    /// </summary>
10
    public class ModifyMediaQuery
11
    {
12
        /// <summary>
13
        /// Initializes the class with required information
14
        /// </summary>
15
        /// <param name="mediaId">The media to be modified</param>
16
        public ModifyMediaQuery(string mediaId)
4✔
17
        {
18
            MediaId = mediaId;
4✔
19
        }
4✔
20

21
        /// <summary>
22
        /// Id of the media to modify
23
        /// </summary>
24
        public string MediaId { get; private set; }
6✔
25

26
        /// <summary>
27
        /// Name of the media
28
        /// </summary>
29
        [ApiField("name")]
30
        public string Name { get; set; }
4✔
31

32
        /// <summary>
33
        /// Description of the media
34
        /// </summary>
35
        [ApiField("description")]
36
        public string Description { get; set; }
3✔
37

38
        /// <summary>
39
        /// Copyright information for the media
40
        /// </summary>
41
        [ApiField("copyright")]
42
        public string Copyright { get; set; }
4✔
43

44
        /// <summary>
45
        /// Published date for the media
46
        /// </summary>
47
        [ApiField("datePublished")]
48
        public string PublishedDate { get; set; }
3✔
49

50
        /// <summary>
51
        /// Indicates if the media is archived
52
        /// </summary>
53
        [ApiField("archive")]
54
        public bool? Archive { get; set; }
4✔
55

56
        /// <summary>
57
        /// Indicates if the media is public
58
        /// </summary>
59
        [ApiField("isPublic")]
60
        public bool? IsPublic { get; set; }
3✔
61

62
        /// <summary>
63
        /// Metaproperty options to set on the asset.
64
        /// </summary>
65
        [ApiField("metaproperty", Converter = typeof(MetapropertyOptionsConverter))]
66
        public IDictionary<string, IList<string>> MetapropertyOptions { get; set; }
4✔
67

68
        /// <summary>
69
        /// Add a set of options to a metaproperty
70
        /// </summary>
71
        /// <param name="metapropertyId">metaproperty ID</param>
72
        /// <param name="optionIds">set of options</param>
73
        public void AddMetapropertyOptions(string metapropertyId, IList<string> optionIds)
74
        {
75
            MetapropertyOptions.Add(metapropertyId, optionIds);
×
76
        }
×
77

78
        /// <summary>
79
        /// Tags that will be added to the asset
80
        /// </summary>
81
        [ApiField("tags", Converter = typeof(ListConverter))]
82
        public IList<string> Tags { get; set; }
3✔
83

84
    }
85
}
86

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc