Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AudioInformation.cs
2{
6 public class AudioInformation
7 {
8 private string url = null;
9 private string secureUrl = null;
10 private string contentType = null;
11
16 {
17 }
18
23 public string Url
24 {
25 get => this.url;
26 set => this.url = value;
27 }
28
33 public string SecureUrl
34 {
35 get => this.secureUrl;
36 set => this.secureUrl = value;
37 }
38
43 public string ContentType
44 {
45 get => this.contentType;
46 set => this.contentType = value;
47 }
48
50 public override bool Equals(object obj)
51 {
52 if (obj is AudioInformation Audio)
53 {
54 return this.url == Audio.url &&
55 this.secureUrl == Audio.secureUrl &&
56 this.contentType == Audio.contentType;
57 }
58 else
59 return false;
60 }
61
63 public override int GetHashCode()
64 {
65 int Result = 0;
66
67 if (!(this.url is null))
68 Result = this.url.GetHashCode();
69
70 if (!(this.secureUrl is null))
71 Result ^= Result << 5 ^ this.secureUrl.GetHashCode();
72
73 if (!(this.contentType is null))
74 Result ^= Result << 5 ^ this.contentType.GetHashCode();
75
76 return Result;
77 }
78
79 }
80}
Audio information, as defined by the Open Graph protocol.
string Url
An image URL which should represent your object within the graph. If not defined, null is returned.
string SecureUrl
An alternate url to use if the webpage requires HTTPS. If not defined, null is returned.
AudioInformation()
Audio information, as defined by the Open Graph protocol.
string ContentType
A MIME type for this image. If not defined, null is returned.