public override string ToString()
    {
        var  sb      = new StringBuilder("SquareChatStatusWithoutMessage(");
        bool __first = true;

        if (__isset.memberCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MemberCount: ");
            MemberCount.ToString(sb);
        }
        if (__isset.unreadMessageCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("UnreadMessageCount: ");
            UnreadMessageCount.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Ejemplo n.º 2
0
 public override int GetHashCode() {
   int hash = 1;
   if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode();
   if (id_ != null) hash ^= Id.GetHashCode();
   if (Type != 0) hash ^= Type.GetHashCode();
   if (name_ != null) hash ^= Name.GetHashCode();
   if (Status != 0) hash ^= Status.GetHashCode();
   if (memberCount_ != null) hash ^= MemberCount.GetHashCode();
   if (referenceCount_ != null) hash ^= ReferenceCount.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
Ejemplo n.º 3
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("SquareStatus(");
        bool __first = true;

        if (__isset.memberCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MemberCount: ");
            MemberCount.ToString(sb);
        }
        if (__isset.joinRequestCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("JoinRequestCount: ");
            JoinRequestCount.ToString(sb);
        }
        if (__isset.lastJoinRequestAt)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("LastJoinRequestAt: ");
            LastJoinRequestAt.ToString(sb);
        }
        if (__isset.openChatCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OpenChatCount: ");
            OpenChatCount.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.memberCount)
            {
                hashcode = (hashcode * 397) + MemberCount.GetHashCode();
            }
            if (__isset.unreadMessageCount)
            {
                hashcode = (hashcode * 397) + UnreadMessageCount.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 5
0
 /// <summary>
 /// returns the string representation of the statistics.
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     lock (this)
     {
         System.Text.StringBuilder ret = new System.Text.StringBuilder();
         ret.Append("Cluster[" + base.ToString() + ", Nm:" + GroupName + ", ");
         ret.Append("S:" + ServerCount.ToString() + ", ");
         ret.Append("M:" + MemberCount.ToString() + ", ");
         ret.Append("O:" + OtherCount.ToString() + ", ");
         if (_localNode != null)
         {
             ret.Append("Local" + _localNode.ToString());
         }
         foreach (NodeInfo i in _nodeInfos)
         {
             ret.Append(", " + i.ToString());
         }
         ret.Append("]");
         return(ret.ToString());
     }
 }
Ejemplo n.º 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (Type != global::Google.Ads.GoogleAds.V8.Enums.SharedSetTypeEnum.Types.SharedSetType.Unspecified)
            {
                hash ^= Type.GetHashCode();
            }
            if (HasName)
            {
                hash ^= Name.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V8.Enums.SharedSetStatusEnum.Types.SharedSetStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (HasMemberCount)
            {
                hash ^= MemberCount.GetHashCode();
            }
            if (HasReferenceCount)
            {
                hash ^= ReferenceCount.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 7
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.mid)
            {
                hashcode = (hashcode * 397) + Mid.GetHashCode();
            }
            if (__isset.memberCount)
            {
                hashcode = (hashcode * 397) + MemberCount.GetHashCode();
            }
            if (__isset.onAir)
            {
                hashcode = (hashcode * 397) + OnAir.GetHashCode();
            }
            if (__isset.businessAccount)
            {
                hashcode = (hashcode * 397) + BusinessAccount.GetHashCode();
            }
            if (__isset.addable)
            {
                hashcode = (hashcode * 397) + Addable.GetHashCode();
            }
            if (__isset.acceptableContentTypes)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(AcceptableContentTypes);
            }
            if (__isset.capableMyhome)
            {
                hashcode = (hashcode * 397) + CapableMyhome.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 8
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.memberCount)
            {
                hashcode = (hashcode * 397) + MemberCount.GetHashCode();
            }
            if (__isset.joinRequestCount)
            {
                hashcode = (hashcode * 397) + JoinRequestCount.GetHashCode();
            }
            if (__isset.lastJoinRequestAt)
            {
                hashcode = (hashcode * 397) + LastJoinRequestAt.GetHashCode();
            }
            if (__isset.openChatCount)
            {
                hashcode = (hashcode * 397) + OpenChatCount.GetHashCode();
            }
        }
        return(hashcode);
    }
Ejemplo n.º 9
0
        /// <summary> 設定されたメンバーとシフトに対して組み合わせを作成する</summary>
        public virtual void  Auto()
        {
            int[]  memRnk = new int[ValidMemberSize];
            bool[] memChk = new bool[ValidMemberSize];
            for (int i = 0; i < ValidMemberSize; i++)
            {
                memRnk[i] = ValidMemberSize + 1;
                memChk[i] = false;
            }
            MemberCount memCnt = new MemberCount(this, Require);
            int         i2 = 0, j = 0;

            //System.out.println("展開サイズ:" + getRequire().getExtractedSize());
            if (Require == null)
            {
                return;
            }
            //
            while (i2 < Require.ExtractedSize)
            {
                j = 0;
                while (j < ValidMemberSize)
                {
                    if (memChk[j])
                    {
                        // もうすでに決定している
                        //System.out.println("すでに決定している:" + i + ":" + j);
                    }
                    else
                    {
                        CMember m1 = GetValidMember(j);
                        // i番目のメンバー
                        CPattern p1 = GetMembersPattern(m1, i2);
                        // メンバーがもっとも望むシフト
                        //System.out.println(i + ":" + m1.getName() + ":" + p1);
                        int m1rank = GetMemberRank(p1, m1);
                        // ↑がシフトにとってどれぐらい望まれているか?
                        if ((m1rank < memRnk[j]) && (p1 != null))
                        {
                            // メンバーがシフトを希望していてランクが有効である
                            if (memCnt.Addable(p1))
                            {
                                // シフトに登録可能な人数内
                                GetSchedule(m1).Pattern = p1;
                                memRnk[j] = m1rank;
                                memChk[j] = true;
                                memCnt.Add(p1);
                            }
                            else
                            {
                                // シフトに登録可能な人数外
                                for (int k = 0; k < ValidMemberSize; k++)
                                {
                                    CMember   compM = GetValidMember(k);
                                    CSchedule compS = GetSchedule(compM);
                                    CPattern  compP = compS.Pattern;
                                    if (p1.Equals(compP))
                                    {
                                        if (memRnk[k] > m1rank)
                                        {
                                            //
                                            GetSchedule(m1).Pattern = p1;
                                            memRnk[j]     = m1rank;
                                            memChk[j]     = true;                                         //
                                            compS.Pattern = null;
                                            memRnk[k]     = ValidMemberSize;
                                            memChk[k]     = false;
                                            break;
                                        }
                                    }
                                }
                            }
                        }
                    }
                    j++;
                }
                i2++;
            }
        }
Ejemplo n.º 10
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("BuddyDetail(");
        bool __first = true;

        if (Mid != null && __isset.mid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Mid: ");
            Mid.ToString(sb);
        }
        if (__isset.memberCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MemberCount: ");
            MemberCount.ToString(sb);
        }
        if (__isset.onAir)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OnAir: ");
            OnAir.ToString(sb);
        }
        if (__isset.businessAccount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("BusinessAccount: ");
            BusinessAccount.ToString(sb);
        }
        if (__isset.addable)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Addable: ");
            Addable.ToString(sb);
        }
        if (AcceptableContentTypes != null && __isset.acceptableContentTypes)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("AcceptableContentTypes: ");
            AcceptableContentTypes.ToString(sb);
        }
        if (__isset.capableMyhome)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CapableMyhome: ");
            CapableMyhome.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Ejemplo n.º 11
0
        public bool Equals(GroupV2 input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     GroupId == input.GroupId ||
                     (GroupId.Equals(input.GroupId))
                     ) &&
                 (
                     Name == input.Name ||
                     (Name != null && Name.Equals(input.Name))
                 ) &&
                 (
                     GroupType == input.GroupType ||
                     (GroupType != null && GroupType.Equals(input.GroupType))
                 ) &&
                 (
                     MembershipIdCreated == input.MembershipIdCreated ||
                     (MembershipIdCreated.Equals(input.MembershipIdCreated))
                 ) &&
                 (
                     CreationDate == input.CreationDate ||
                     (CreationDate != null && CreationDate.Equals(input.CreationDate))
                 ) &&
                 (
                     ModificationDate == input.ModificationDate ||
                     (ModificationDate != null && ModificationDate.Equals(input.ModificationDate))
                 ) &&
                 (
                     About == input.About ||
                     (About != null && About.Equals(input.About))
                 ) &&
                 (
                     Tags == input.Tags ||
                     (Tags != null && Tags.SequenceEqual(input.Tags))
                 ) &&
                 (
                     MemberCount == input.MemberCount ||
                     (MemberCount.Equals(input.MemberCount))
                 ) &&
                 (
                     IsPublic == input.IsPublic ||
                     (IsPublic != null && IsPublic.Equals(input.IsPublic))
                 ) &&
                 (
                     IsPublicTopicAdminOnly == input.IsPublicTopicAdminOnly ||
                     (IsPublicTopicAdminOnly != null && IsPublicTopicAdminOnly.Equals(input.IsPublicTopicAdminOnly))
                 ) &&
                 (
                     Motto == input.Motto ||
                     (Motto != null && Motto.Equals(input.Motto))
                 ) &&
                 (
                     AllowChat == input.AllowChat ||
                     (AllowChat != null && AllowChat.Equals(input.AllowChat))
                 ) &&
                 (
                     IsDefaultPostPublic == input.IsDefaultPostPublic ||
                     (IsDefaultPostPublic != null && IsDefaultPostPublic.Equals(input.IsDefaultPostPublic))
                 ) &&
                 (
                     ChatSecurity == input.ChatSecurity ||
                     (ChatSecurity != null && ChatSecurity.Equals(input.ChatSecurity))
                 ) &&
                 (
                     Locale == input.Locale ||
                     (Locale != null && Locale.Equals(input.Locale))
                 ) &&
                 (
                     AvatarImageIndex == input.AvatarImageIndex ||
                     (AvatarImageIndex.Equals(input.AvatarImageIndex))
                 ) &&
                 (
                     Homepage == input.Homepage ||
                     (Homepage != null && Homepage.Equals(input.Homepage))
                 ) &&
                 (
                     MembershipOption == input.MembershipOption ||
                     (MembershipOption != null && MembershipOption.Equals(input.MembershipOption))
                 ) &&
                 (
                     DefaultPublicity == input.DefaultPublicity ||
                     (DefaultPublicity != null && DefaultPublicity.Equals(input.DefaultPublicity))
                 ) &&
                 (
                     Theme == input.Theme ||
                     (Theme != null && Theme.Equals(input.Theme))
                 ) &&
                 (
                     BannerPath == input.BannerPath ||
                     (BannerPath != null && BannerPath.Equals(input.BannerPath))
                 ) &&
                 (
                     AvatarPath == input.AvatarPath ||
                     (AvatarPath != null && AvatarPath.Equals(input.AvatarPath))
                 ) &&
                 (
                     ConversationId == input.ConversationId ||
                     (ConversationId.Equals(input.ConversationId))
                 ) &&
                 (
                     EnableInvitationMessagingForAdmins == input.EnableInvitationMessagingForAdmins ||
                     (EnableInvitationMessagingForAdmins != null && EnableInvitationMessagingForAdmins.Equals(input.EnableInvitationMessagingForAdmins))
                 ) &&
                 (
                     BanExpireDate == input.BanExpireDate ||
                     (BanExpireDate != null && BanExpireDate.Equals(input.BanExpireDate))
                 ) &&
                 (
                     Features == input.Features ||
                     (Features != null && Features.Equals(input.Features))
                 ) &&
                 (
                     ClanInfo == input.ClanInfo ||
                     (ClanInfo != null && ClanInfo.Equals(input.ClanInfo))
                 ));
        }
Ejemplo n.º 12
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ProfileMedium != null)
         {
             hashCode = hashCode * 59 + ProfileMedium.GetHashCode();
         }
         if (CoverPhoto != null)
         {
             hashCode = hashCode * 59 + CoverPhoto.GetHashCode();
         }
         if (CoverPhotoSmall != null)
         {
             hashCode = hashCode * 59 + CoverPhotoSmall.GetHashCode();
         }
         if (SportType != null)
         {
             hashCode = hashCode * 59 + SportType.GetHashCode();
         }
         if (ActivityTypes != null)
         {
             hashCode = hashCode * 59 + ActivityTypes.GetHashCode();
         }
         if (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (State != null)
         {
             hashCode = hashCode * 59 + State.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (_Private != null)
         {
             hashCode = hashCode * 59 + _Private.GetHashCode();
         }
         if (MemberCount != null)
         {
             hashCode = hashCode * 59 + MemberCount.GetHashCode();
         }
         if (Featured != null)
         {
             hashCode = hashCode * 59 + Featured.GetHashCode();
         }
         if (Verified != null)
         {
             hashCode = hashCode * 59 + Verified.GetHashCode();
         }
         if (Url != null)
         {
             hashCode = hashCode * 59 + Url.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 13
0
        /// <summary>
        /// Returns true if SummaryClub instances are equal
        /// </summary>
        /// <param name="other">Instance of SummaryClub to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SummaryClub other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ProfileMedium == other.ProfileMedium ||
                     ProfileMedium != null &&
                     ProfileMedium.Equals(other.ProfileMedium)
                     ) &&
                 (
                     CoverPhoto == other.CoverPhoto ||
                     CoverPhoto != null &&
                     CoverPhoto.Equals(other.CoverPhoto)
                 ) &&
                 (
                     CoverPhotoSmall == other.CoverPhotoSmall ||
                     CoverPhotoSmall != null &&
                     CoverPhotoSmall.Equals(other.CoverPhotoSmall)
                 ) &&
                 (
                     SportType == other.SportType ||
                     SportType != null &&
                     SportType.Equals(other.SportType)
                 ) &&
                 (
                     ActivityTypes == other.ActivityTypes ||
                     ActivityTypes != null &&
                     ActivityTypes.SequenceEqual(other.ActivityTypes)
                 ) &&
                 (
                     City == other.City ||
                     City != null &&
                     City.Equals(other.City)
                 ) &&
                 (
                     State == other.State ||
                     State != null &&
                     State.Equals(other.State)
                 ) &&
                 (
                     Country == other.Country ||
                     Country != null &&
                     Country.Equals(other.Country)
                 ) &&
                 (
                     _Private == other._Private ||
                     _Private != null &&
                     _Private.Equals(other._Private)
                 ) &&
                 (
                     MemberCount == other.MemberCount ||
                     MemberCount != null &&
                     MemberCount.Equals(other.MemberCount)
                 ) &&
                 (
                     Featured == other.Featured ||
                     Featured != null &&
                     Featured.Equals(other.Featured)
                 ) &&
                 (
                     Verified == other.Verified ||
                     Verified != null &&
                     Verified.Equals(other.Verified)
                 ) &&
                 (
                     Url == other.Url ||
                     Url != null &&
                     Url.Equals(other.Url)
                 ));
        }
Ejemplo n.º 14
0
        public bool Equals(GroupV2Card input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     GroupId == input.GroupId ||
                     (GroupId.Equals(input.GroupId))
                     ) &&
                 (
                     Name == input.Name ||
                     (Name != null && Name.Equals(input.Name))
                 ) &&
                 (
                     GroupType == input.GroupType ||
                     (GroupType != null && GroupType.Equals(input.GroupType))
                 ) &&
                 (
                     CreationDate == input.CreationDate ||
                     (CreationDate != null && CreationDate.Equals(input.CreationDate))
                 ) &&
                 (
                     About == input.About ||
                     (About != null && About.Equals(input.About))
                 ) &&
                 (
                     Motto == input.Motto ||
                     (Motto != null && Motto.Equals(input.Motto))
                 ) &&
                 (
                     MemberCount == input.MemberCount ||
                     (MemberCount.Equals(input.MemberCount))
                 ) &&
                 (
                     Locale == input.Locale ||
                     (Locale != null && Locale.Equals(input.Locale))
                 ) &&
                 (
                     MembershipOption == input.MembershipOption ||
                     (MembershipOption != null && MembershipOption.Equals(input.MembershipOption))
                 ) &&
                 (
                     Capabilities == input.Capabilities ||
                     (Capabilities != null && Capabilities.Equals(input.Capabilities))
                 ) &&
                 (
                     ClanInfo == input.ClanInfo ||
                     (ClanInfo != null && ClanInfo.Equals(input.ClanInfo))
                 ) &&
                 (
                     AvatarPath == input.AvatarPath ||
                     (AvatarPath != null && AvatarPath.Equals(input.AvatarPath))
                 ) &&
                 (
                     Theme == input.Theme ||
                     (Theme != null && Theme.Equals(input.Theme))
                 ));
        }