Class ApodContent
Contains information about the digital contents of an Astronomy Picture of the Day.
Namespace: Apod
Assembly: Apod.dll
Syntax
public class ApodContent : IEquatable<ApodContent>
Properties
| Improve this Doc View SourceContentUrl
The URL for the content. Remember that this can be both image and video content.
Declaration
public string ContentUrl { get; set; }
Property Value
Type | Description |
---|---|
String | The URL for the content. |
ContentUrlHD
The URL for the high-definition variant of the content.
Declaration
public string ContentUrlHD { get; set; }
Property Value
Type | Description |
---|---|
String | The URL for the high-definition variant of the content. |
Remarks
Will sometimes be the same as ContentUrl.
Copyright
The name of the copyright holder.
Declaration
public string Copyright { get; set; }
Property Value
Type | Description |
---|---|
String | The name of the copyright holder. |
Remarks
This will be null For APODs without copyright.
Date
The date when this was the Astronomy Picture of the Day.
Declaration
public DateTime Date { get; set; }
Property Value
Type | Description |
---|---|
DateTime | The date when this was the Astronomy Picture of the Day. |
Explanation
An explanation of the content.
Declaration
public string Explanation { get; set; }
Property Value
Type | Description |
---|---|
String | An explanation of the content. |
MediaType
The type of media.
Declaration
public MediaType MediaType { get; set; }
Property Value
Type | Description |
---|---|
MediaType | The type of media. |
ServiceVersion
The NASA API service version used.
Declaration
public string ServiceVersion { get; set; }
Property Value
Type | Description |
---|---|
String | The NASA API service version used. |
Remarks
You cannot influence the value of this property.
Title
The title of the content.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
String | The title of the content. |
Methods
| Improve this Doc View SourceEquals(ApodContent)
Check if this ApodContent and another ApodContent other
represent the same Astronomy Picture of the Day.
Declaration
public bool Equals(ApodContent other)
Parameters
Type | Name | Description |
---|---|---|
ApodContent | other | The ApodContent to compare with. |
Returns
Type | Description |
---|---|
Boolean | Whether or not this ApodContent and |
Equals(Object)
Check if this ApodContent and another obj
represent the same Astronomy Picture of the Day.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with. |
Returns
Type | Description |
---|---|
Boolean | Whether or not these objects represent the same Astronomy Picture of the Day. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Operators
| Improve this Doc View SourceEquality(ApodContent, ApodContent)
Check if two ApodContent a
and b
represent the same Astronomy Picture of the Day.
Declaration
public static bool operator ==(ApodContent a, ApodContent b)
Parameters
Type | Name | Description |
---|---|---|
ApodContent | a | The first ApodContent. |
ApodContent | b | The second ApodContent. |
Returns
Type | Description |
---|---|
Boolean | Whether or not |
Inequality(ApodContent, ApodContent)
Check if two ApodContent a
and b
represent different Astronomy Pictures of the Day.
Declaration
public static bool operator !=(ApodContent a, ApodContent b)
Parameters
Type | Name | Description |
---|---|---|
ApodContent | a | The first ApodContent. |
ApodContent | b | The second ApodContent. |
Returns
Type | Description |
---|---|
Boolean | Whether or not |