Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
VideoInformation.cs
2{
7 {
8 private int? width = null;
9 private int? height = null;
10
15 {
16 }
17
22 public int? Width
23 {
24 get => this.width;
25 set => this.width = value;
26 }
27
32 public int? Height
33 {
34 get => this.height;
35 set => this.height = value;
36 }
37
39 public override bool Equals(object obj)
40 {
41 if (obj is VideoInformation Video)
42 {
43 return base.Equals(Video) &&
44 this.width == Video.width &&
45 this.height == Video.height;
46 }
47 else
48 return false;
49 }
50
52 public override int GetHashCode()
53 {
54 int Result = base.GetHashCode();
55
56 if (this.width.HasValue)
57 Result ^= Result << 5 ^ this.width.Value.GetHashCode();
58
59 if (this.height.HasValue)
60 Result ^= Result << 5 ^ this.height.Value.GetHashCode();
61
62 return Result;
63 }
64 }
65}
Audio information, as defined by the Open Graph protocol.
Video information, as defined by the Open Graph protocol.
int? Height
The number of pixels high. If not defined, null is returned.
int? Width
The number of pixels wide. If not defined, null is returned.
VideoInformation()
Video information, as defined by the Open Graph protocol.