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) { }
public SocialAccount(Terrasoft.Configuration.SocialAccount source) : base(source) { this.CopyEntityLookupProperties(source); }