1using System.Runtime.Serialization;
17 private int? _hashCode;
19 #region Public Properties
32 public string ref_id {
get;
protected set; }
37 public string href {
get;
protected set; }
38 #endregion Public Properties
51 #endregion Constructors
53 #region Equality and Object overrides
68 if (!_hashCode.HasValue)
69 _hashCode =
ref_id?.GetHashCode() ??
base.GetHashCode();
70 return _hashCode.Value;
77 return ref_id ??
"(empty)";
79 #endregion Equality and Object overrides
Base class used by all types and resources.
Implements the basic reference entity interface, but has no support for resolving references.
override int GetHashCode()
Serves as a hash function for reference objects.
override bool Equals(object obj)
Determines whether the two reference objects refer to the same object.
Reference(string ref_id, string href)
Creates a new reference class that refers to an object with the specified id, type,...
string href
The HREF that can be used to retrieve the object being referred to.
string reference_type
In cases where a model can reference resources belonging to one of a number of collections,...
override string ToString()
Returns this reference's id.
string ref_id
The id of the object being referred to.
Describes a collection of resources which can be listed.
Specifies that a property is generated by the server and should not be specified on the client side d...
Base interface for all reference entities.