Exemplo n.º 1
0
        private void SetCurrenUserGoogleSettings()
        {
            Guid          currentUserId       = UserConnection.CurrentUser.Id;
            var           socialAccountSchema = UserConnection.EntitySchemaManager.GetInstanceByName("SocialAccount");
            SocialAccount socialAccountEntity = (SocialAccount)socialAccountSchema.CreateEntity(UserConnection);

            if (socialAccountEntity.FetchFromDB(new Dictionary <string, object> {
                { "Type", CommunicationConsts.GoogleTypeUId },
                { "User", currentUserId }
            }))
            {
                _sourceAccountId  = socialAccountEntity.Id;
                _accessToken      = socialAccountEntity.AccessToken;
                SocialAccountName = socialAccountEntity.Login;
            }
        }
 public SocialAccount(SocialAccount source)
     : base(source)
 {
 }
Exemplo n.º 3
0
 public SocialAccount(Terrasoft.Configuration.SocialAccount source)
     : base(source)
 {
     this.CopyEntityLookupProperties(source);
 }