Show / Hide Table of Contents

Class ApodContent

Contains information about the digital contents of an Astronomy Picture of the Day.

Inheritance
Object
ApodContent
Namespace: Apod
Assembly: Apod.dll
Syntax
public class ApodContent : IEquatable<ApodContent>

Properties

| Improve this Doc View Source

ContentUrl

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

Explanation

An explanation of the content.

Declaration
public string Explanation { get; set; }
Property Value
Type Description
String

An explanation of the content.

| Improve this Doc View Source

MediaType

The type of media.

Declaration
public MediaType MediaType { get; set; }
Property Value
Type Description
MediaType

The type of media.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

Equals(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 other represent the same Astronomy Picture of the Day.

| Improve this Doc View Source

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.

| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

Operators

| Improve this Doc View Source

Equality(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 a and b represent the same Astronomy Picture of the Day.

| Improve this Doc View Source

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 a and b represent different Astronomy Pictures of the Day.

See Also

ApodResponse
ApodError
  • Improve this Doc
  • View Source
Back to top Generated by DocFX