/// <summary> /// Returns true if Offer instances are equal /// </summary> /// <param name="other">Instance of Offer to be compared</param> /// <returns>Boolean</returns> public bool Equals(Offer other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return (( OfferType == other.OfferType || OfferType != null && OfferType.Equals(other.OfferType) ) && ( Resource == other.Resource || Resource != null && Resource.Equals(other.Resource) ) && ( OfferResourceId == other.OfferResourceId || OfferResourceId != null && OfferResourceId.Equals(other.OfferResourceId) ) && ( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Rid == other.Rid || Rid != null && Rid.Equals(other.Rid) ) && ( Ts == other.Ts || Ts != null && Ts.Equals(other.Ts) ) && ( Self == other.Self || Self != null && Self.Equals(other.Self) ) && ( Etag == other.Etag || Etag != null && Etag.Equals(other.Etag) )); }
/// <summary> /// Returns true if Permission instances are equal /// </summary> /// <param name="other">Instance of Permission to be compared</param> /// <returns>Boolean</returns> public bool Equals(Permission other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( PermissionMode == other.PermissionMode || PermissionMode != null && PermissionMode.SequenceEqual(other.PermissionMode) ) && ( Resource == other.Resource || Resource != null && Resource.Equals(other.Resource) ) && ( Rid == other.Rid || Rid != null && Rid.Equals(other.Rid) ) && ( Ts == other.Ts || Ts != null && Ts.Equals(other.Ts) ) && ( Self == other.Self || Self != null && Self.Equals(other.Self) ) && ( Etag == other.Etag || Etag != null && Etag.Equals(other.Etag) ) && ( Token == other.Token || Token != null && Token.Equals(other.Token) )); }
private int GetIndice(T a) { int retornado = 0; if (((object)a) != null) { foreach (T Ts in this._lista) { if (Ts.Equals(a)) { return(retornado); } retornado++; } } return(-1); }
/// <summary> /// Returns true if Database instances are equal /// </summary> /// <param name="other">Instance of Database to be compared</param> /// <returns>Boolean</returns> public bool Equals(Database other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Rid == other.Rid || Rid != null && Rid.Equals(other.Rid) ) && ( Ts == other.Ts || Ts != null && Ts.Equals(other.Ts) ) && ( Self == other.Self || Self != null && Self.Equals(other.Self) ) && ( Etag == other.Etag || Etag != null && Etag.Equals(other.Etag) ) && ( Colls == other.Colls || Colls != null && Colls.Equals(other.Colls) ) && ( Users == other.Users || Users != null && Users.Equals(other.Users) )); }
/// <summary> /// Returns true if AttachmentResponse instances are equal /// </summary> /// <param name="other">Instance of AttachmentResponse to be compared</param> /// <returns>Boolean</returns> public bool Equals(AttachmentResponse other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( ContentType == other.ContentType || ContentType != null && ContentType.Equals(other.ContentType) ) && ( Media == other.Media || Media != null && Media.Equals(other.Media) ) && ( Rid == other.Rid || Rid != null && Rid.Equals(other.Rid) ) && ( Ts == other.Ts || Ts != null && Ts.Equals(other.Ts) ) && ( Self == other.Self || Self != null && Self.Equals(other.Self) ) && ( Etag == other.Etag || Etag != null && Etag.Equals(other.Etag) )); }
/// <summary> /// Returns true if Udf instances are equal /// </summary> /// <param name="other">Instance of Udf to be compared</param> /// <returns>Boolean</returns> public bool Equals(Udf other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Body == other.Body || Body != null && Body.Equals(other.Body) ) && ( Rid == other.Rid || Rid != null && Rid.Equals(other.Rid) ) && ( Ts == other.Ts || Ts != null && Ts.Equals(other.Ts) ) && ( Self == other.Self || Self != null && Self.Equals(other.Self) ) && ( Etag == other.Etag || Etag != null && Etag.Equals(other.Etag) )); }
/// <summary> /// Returns true if Document instances are equal /// </summary> /// <param name="other">Instance of Document to be compared</param> /// <returns>Boolean</returns> public bool Equals(Document other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Rid == other.Rid || Rid != null && Rid.Equals(other.Rid) ) && ( Ts == other.Ts || Ts != null && Ts.Equals(other.Ts) ) && ( Self == other.Self || Self != null && Self.Equals(other.Self) ) && ( Etag == other.Etag || Etag != null && Etag.Equals(other.Etag) ) && ( Attachments == other.Attachments || Attachments != null && Attachments.Equals(other.Attachments) )); }
/// <summary> /// Returns true if Collection instances are equal /// </summary> /// <param name="other">Instance of Collection to be compared</param> /// <returns>Boolean</returns> public bool Equals(Collection other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Rid == other.Rid || Rid != null && Rid.Equals(other.Rid) ) && ( Ts == other.Ts || Ts != null && Ts.Equals(other.Ts) ) && ( Self == other.Self || Self != null && Self.Equals(other.Self) ) && ( Etag == other.Etag || Etag != null && Etag.Equals(other.Etag) ) && ( Doc == other.Doc || Doc != null && Doc.Equals(other.Doc) ) && ( Sprocs == other.Sprocs || Sprocs != null && Sprocs.Equals(other.Sprocs) ) && ( Triggers == other.Triggers || Triggers != null && Triggers.Equals(other.Triggers) ) && ( Udfs == other.Udfs || Udfs != null && Udfs.Equals(other.Udfs) ) && ( Conflicts == other.Conflicts || Conflicts != null && Conflicts.Equals(other.Conflicts) ) && ( IndexingPolicy == other.IndexingPolicy || IndexingPolicy != null && IndexingPolicy.Equals(other.IndexingPolicy) )); }