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
placementIdstringadTypeAdTypeadPlacementTypeAdPlacementType
Properties
AdPlacementType
public readonly AdPlacementType AdPlacementType { get; }
Property Value
AdType
public readonly AdType AdType { get; }
Property Value
PlacementId
Placement ID, or Ad Unit, as a string, used by the mediator.
[NotNull]
public string PlacementId { readonly get; set; }
Property Value
Methods
Equals(AdInfo)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(AdInfo other)
Parameters
otherAdInfoAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
Returns
implicit operator string(AdInfo)
public static implicit operator string(AdInfo adInfo)
Parameters
adInfoAdInfo
Returns
operator !=(AdInfo, AdInfo)
public static bool operator !=(AdInfo left, AdInfo right)