Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GenreRelations" /> class.
 /// </summary>
 /// <param name="Broadcasts">Broadcasts.</param>
 /// <param name="Programs">Programs.</param>
 public GenreRelations(GenreRelationsBroadcasts Broadcasts = default(GenreRelationsBroadcasts), GenreRelationsPrograms Programs = default(GenreRelationsPrograms))
 {
     this.Broadcasts = Broadcasts;
     this.Programs   = Programs;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GenreResult" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="Urn">Urn.</param>
 /// <param name="ParentId">ParentId.</param>
 /// <param name="Name">Name (required).</param>
 /// <param name="Broadcasts">Broadcasts.</param>
 /// <param name="Programs">Programs.</param>
 /// <param name="ExternalStationId">ExternalStationId.</param>
 public GenreResult(long?Id = default(long?), string Urn = default(string), long?ParentId = default(long?), string Name = default(string), GenreRelationsBroadcasts Broadcasts = default(GenreRelationsBroadcasts), GenreRelationsPrograms Programs = default(GenreRelationsPrograms), long?ExternalStationId = default(long?))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for GenreResult and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for GenreResult and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     this.Urn               = Urn;
     this.ParentId          = ParentId;
     this.Broadcasts        = Broadcasts;
     this.Programs          = Programs;
     this.ExternalStationId = ExternalStationId;
 }