Goedel.Mesh.MeshClient.GetApplicationProfile C# (CSharp) Method

GetApplicationProfile() public method

Retrieve an application profile by unique ID.
public GetApplicationProfile ( string ID ) : SignedApplicationProfile
ID string the unique id of the profile.
return SignedApplicationProfile
        public SignedApplicationProfile GetApplicationProfile (string ID) {

            var GetRequest = new GetRequest();
            GetRequest.Identifier = ID;
            GetRequest.Multiple = false;

            var GetResponse = MeshService.Get(GetRequest);
            if (GetResponse.Entries == null) { return null; }
            if (GetResponse.Entries.Count == 0) { return null; }

            var SignedApplicationProfile = GetResponse.Entries[0] as SignedApplicationProfile;
            if (SignedApplicationProfile == null) { return null; }

            return SignedApplicationProfile;
            }