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"); }); }
public LinkItem(string name, AGCAuthProviderType providerType, bool isLinked) { Name = name; ProviderType = (int)providerType; IsLinked = IsLinked; }