コード例 #1
0
        internal ExternalAccountPreview(IExternalUser externalUser, IOAuthProvider provider)
        {
            var pid = externalUser.ProviderId;

            this.Id       = externalUser.Id;
            this.Username = externalUser.Username;
            this.Provider = new LoginProviderPreview(pid, provider.GetName(pid), provider.GetColour(pid));
        }