private void OnTicketReceived(Club.ClubTicketReceivedEvent ticketEvent)
        {
            ClubErrorType clubErrorType;
            ClubInfo?     clubInfo;
            bool          flag;

            Club.GetLastTicketResponse(ticketEvent.Ticket, ref clubErrorType, ref clubInfo, ref flag);
            if (clubErrorType == null)
            {
                if (clubInfo != null)
                {
                    ClubInfo value = clubInfo.Value;
                    if (value.clubType != 1)
                    {
                        this.ShowErrorText("COMMUNITIES_WRONG_COMMUNITY");
                        return;
                    }
                    this.m_nextButton.interactable = true;
                    this.m_communityText.text      = value.name;
                    this.m_communityIcon.sprite    = GeneralHelpers.LoadIconAsset(AssetBundleType.Icons, (int)((value.avatarId != 0u) ? value.avatarId : ((uint)StaticDB.communityIconDB.GetRecord(1).IconFileID)));
                    this.m_validTicketKey          = ticketEvent.Ticket;
                    this.m_validClubInfo           = value;
                }
            }
            else
            {
                this.ShowErrorText("COMMUNITIES_INVALID_LINK");
            }
        }
 private void OnTicketReceived(Club.ClubTicketReceivedEvent ticketEvent)
 {
     if (ticketEvent.Error != ClubErrorType.ERROR_COMMUNITIES_NONE)
     {
         this.ShowErrorText("COMMUNITIES_INVALID_LINK");
     }
     else if (ticketEvent.Info.HasValue)
     {
         ClubInfo value = ticketEvent.Info.Value;
         if (value.clubType != ClubType.Character)
         {
             this.ShowErrorText("COMMUNITIES_WRONG_COMMUNITY");
             return;
         }
         this.m_nextButton.interactable = true;
         this.m_communityText.text      = value.name.ToUpper();
         this.m_validTicketKey          = ticketEvent.Ticket;
         this.m_validClubInfo           = value;
     }
 }