示例#1
0
        void UnLinkAccount(AGCAuthProviderType type)
        {
            var unLinkReq = AGCAuth.GetInstance().CurrentUser?.Unlink(type);

            unLinkReq.AddOnSuccessCallback((result) =>
            {
                Console.WriteLine("unlink success");
                owner.RefreshLinkState();
            });
            unLinkReq.AddOnFailureCallback((error) =>
            {
                Console.WriteLine("unlink failed");
            });
        }
示例#2
0
 public LinkItem(string name, AGCAuthProviderType providerType, bool isLinked)
 {
     Name         = name;
     ProviderType = (int)providerType;
     IsLinked     = IsLinked;
 }