Table of Contents

Struct AdInfo

Namespace
HomaGames.HomaBelly
Assembly
HomaGames.HomaBelly.Core.dll

Holds infos about an ad placement id

[Obsolete("Use 'Homa.Sdk.Ads.IAdInfo' instead.")]
public struct AdInfo : IEquatable<AdInfo>
Implements
Inherited Members

Constructors

AdInfo(string, AdType, AdPlacementType)

public AdInfo(string placementId, AdType adType, AdPlacementType adPlacementType)

Parameters

placementId string
adType AdType
adPlacementType AdPlacementType

Properties

AdPlacementType

public readonly AdPlacementType AdPlacementType { get; }

Property Value

AdPlacementType

AdType

public readonly AdType AdType { get; }

Property Value

AdType

PlacementId

Placement ID, or Ad Unit, as a string, used by the mediator.

[NotNull]
public string PlacementId { readonly get; set; }

Property Value

string

Methods

Equals(AdInfo)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(AdInfo other)

Parameters

other AdInfo

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(AdInfo, AdInfo)

public static bool operator ==(AdInfo left, AdInfo right)

Parameters

left AdInfo
right AdInfo

Returns

bool

implicit operator string(AdInfo)

public static implicit operator string(AdInfo adInfo)

Parameters

adInfo AdInfo

Returns

string

operator !=(AdInfo, AdInfo)

public static bool operator !=(AdInfo left, AdInfo right)

Parameters

left AdInfo
right AdInfo

Returns

bool