Goedel.Mesh.Mesh.GetAccount C# (CSharp) Method

GetAccount() public method

Get Account with the specified identifier.
public GetAccount ( string AccountId ) : Account
AccountId string Identifier to retrieve.
return Account
        public Account GetAccount(string AccountId) {

            var AccountDataItem = PortalByPrimary.Get(Account.PrimaryKey(AccountId));
            if (AccountDataItem == null) {
                return null;
                }

            var AccountObject = Account.FromTagged(AccountDataItem.Text);
            return AccountObject;
            }

Usage Example

Exemplo n.º 1
0
        public void MeshStorem() {
            File.Delete(Store);
            File.Delete(Portal);
            Mesh = new Mesh(Service, Store, Portal);
            Mesh.CheckAccount(AccountID);

            var DevProfile = new SignedDeviceProfile(Device1, Device1Description);
            var UserProfile = new PersonalProfile(DevProfile);

            var SignedProfile = UserProfile.Signed;
            Mesh.CreateAccount(UserName, SignedProfile);

            Mesh.GetAccount(UserName);

            var PasswordProfile = new PasswordProfile(true);
            var SignedPasswordProfile = PasswordProfile.Signed;

            SignedProfile = UserProfile.Signed;
            Mesh.AddProfile(SignedPasswordProfile);
            Mesh.UpdateProfile(SignedProfile);





            }
All Usage Examples Of Goedel.Mesh.Mesh::GetAccount