public QueryPermissions(
            HealthVaultClient client,
            RecordReference record,
            RequestBody body,
            Type responseType)
            : base(client)
        {
            if (record == null)
            {
                throw new ArgumentNullException("record");
            }

            if (body == null)
            {
                throw new ArgumentNullException("body");
            }

            if (responseType == null)
            {
                throw new ArgumentNullException("responseType");
            }

            m_record = record;
            m_requestBody = body;
            m_responseType = responseType;
        }
 public IsValidHealthVaultAccount(
     HealthVaultClient client,
     string msaTicket,
     Type responseType)
     : this(client, new MSATicket(msaTicket), responseType)
 {
 }
Exemplo n.º 3
0
        public QueryPermissions(
            HealthVaultClient client,
            RecordReference record,
            RequestBody body,
            Type responseType)
            : base(client)
        {
            if (record == null)
            {
                throw new ArgumentNullException("record");
            }

            if (body == null)
            {
                throw new ArgumentNullException("body");
            }

            if (responseType == null)
            {
                throw new ArgumentNullException("responseType");
            }

            m_record       = record;
            m_requestBody  = body;
            m_responseType = responseType;
        }
 public IsValidHealthVaultAccount(
     HealthVaultClient client, 
     string msaTicket,
     Type responseType)
     : this(client, new MSATicket(msaTicket), responseType)
 {
 }
Exemplo n.º 5
0
 public RemoveApplicationRecordAuthorization(HealthVaultClient client, RecordReference record)
     : base(client)
 {
     if (record == null)
     {
         throw new ArgumentNullException("record");
     }
     m_record = record;
 }
 public BeginPutBlob(HealthVaultClient client, RecordReference record)
     : base(client)
 {
     if (record == null)
     {
         throw new ArgumentNullException("record");
     }
     m_record = record;
 }
 public RemoveApplicationRecordAuthorization(HealthVaultClient client, RecordReference record)
     : base(client)
 {
     if (record == null)
     {
         throw new ArgumentNullException("record");
     }
     m_record = record;
 }
        public HealthVaultMethod(HealthVaultClient client)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }

            m_client = client;
        }
 public QueryPermissions(
     HealthVaultClient client,
     string personID, 
     string recordID,
     RequestBody body,
     Type responseType)
     : this(client, new RecordReference(personID, recordID), body, responseType)
 {
 }
Exemplo n.º 10
0
 public QueryPermissions(
     HealthVaultClient client,
     string personID,
     string recordID,
     RequestBody body,
     Type responseType)
     : this(client, new RecordReference(personID, recordID), body, responseType)
 {
 }
        public HealthVaultMethod(HealthVaultClient client)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }

            m_client = client;
        }
        public GetServiceDefinition(HealthVaultClient client, DateTime lastUpdated, ServiceDefinitionResponseSections[] responseSections)
            : base(client)
        {
            if (responseSections == null)
            {
                throw new ArgumentNullException("responseSections");
            }

            m_data = new object[] { new LastUpdatedDate(lastUpdated), new ResponseConfig(responseSections) };
        }
        public CreateCredentialTokenWithTicket(HealthVaultClient client, MSATicket msaTicket)
            : base(client)
        {
            if (msaTicket == null)
            {
                throw new ArgumentNullException("msaTicket");
            }

            m_msaTicket = msaTicket;
        }
        public CreateCredentialTokenWithTicket(HealthVaultClient client, MSATicket msaTicket)
            : base(client)
        {
            if (msaTicket == null)
            {
                throw new ArgumentNullException("msaTicket");
            }

            m_msaTicket = msaTicket;
        }
        public GetServiceDefinition(HealthVaultClient client, DateTime lastUpdated, ServiceDefinitionResponseSections[] responseSections)
            : base(client)
        {
            if (responseSections == null)
            {
                throw new ArgumentNullException("responseSections");
            }

            m_data = new object[] { new LastUpdatedDate(lastUpdated), new ResponseConfig(responseSections) };
        }
        public GetUpdatedRecordsForApplication(HealthVaultClient client, DateTimeOffset lastUpdateDate)
            : base(client)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }

            m_params = new GetUpdatedRecordsForApplicationParams()
            {
                UpdateDate = lastUpdateDate
            };
        }
Exemplo n.º 17
0
        public GetThingType(HealthVaultClient client, RequestBody body, Type responseType)
            : base(client)
        {
            if (body == null)
            {
                throw new ArgumentNullException("body");
            }
            if (responseType == null)
            {
                throw new ArgumentNullException("responseType");
            }

            m_body         = body;
            m_responseType = responseType;
        }
        public GetThingType(HealthVaultClient client, RequestBody body, Type responseType)
            : base(client)
        {
            if (body == null)
            {
                throw new ArgumentNullException("body");
            }
            if (responseType == null)
            {
                throw new ArgumentNullException("responseType");
            }

            m_body = body;
            m_responseType = responseType;
        }
        public RemoveThings(HealthVaultClient client, RecordReference record, RequestBody body)
            : base(client)
        {
            if (record == null)
            {
                throw new ArgumentNullException("record");
            }
            if (body == null)
            {
                throw new ArgumentNullException("body");
            }

            m_record = record;
            m_body   = body;
        }
        public CreateApplicationWithTicket(HealthVaultClient client, MSATicket msaTicket, AppInstanceName appInstanceName)
            : base(client)
        {
            if (msaTicket == null)
            {
                throw new ArgumentNullException("msaTicket");
            }

            if (appInstanceName == null)
            {
                throw new ArgumentNullException("appInstanceName");
            }

            m_msaTicket       = msaTicket;
            m_appInstanceName = appInstanceName;
        }
Exemplo n.º 21
0
        public CreateAccountWithTicket(HealthVaultClient client, string msaTicket, object createAccountPersonInfo)
            : base(client)
        {
            if (String.IsNullOrEmpty(msaTicket))
            {
                throw new ArgumentNullException("msaTicket");
            }

            if (createAccountPersonInfo == null)
            {
                throw new ArgumentNullException("createAccountPersonInfo");
            }

            m_msaTicket = new MSATicket(msaTicket);
            m_createAccountPersonInfo = createAccountPersonInfo;
        }
        public CreateRecord(HealthVaultClient client, RequestBody requestBody, Type responseType)
            : base(client)
        {
            if (requestBody == null)
            {
                throw new ArgumentNullException("requestBody");
            }

            if (responseType == null)
            {
                throw new ArgumentNullException("responseType");
            }

            m_requestBody  = requestBody;
            m_responseType = responseType;
        }
        public CreateApplicationWithTicket(HealthVaultClient client, MSATicket msaTicket, AppInstanceName appInstanceName)
            : base(client)
        {
            if (msaTicket == null)
            {
                throw new ArgumentNullException("msaTicket");
            }

            if (appInstanceName == null)
            {
                throw new ArgumentNullException("appInstanceName");
            }
    
            m_msaTicket = msaTicket;
            m_appInstanceName = appInstanceName;
        }
        public CreateAccountWithTicket(HealthVaultClient client, string msaTicket, object createAccountPersonInfo)
            : base(client)
        {
            if (String.IsNullOrEmpty(msaTicket))
            {
                throw new ArgumentNullException("msaTicket");
            }

            if (createAccountPersonInfo == null)
            {
                throw new ArgumentNullException("createAccountPersonInfo");
            }

            m_msaTicket = new MSATicket(msaTicket);
            m_createAccountPersonInfo = createAccountPersonInfo;
        }
        public SelectInstance(HealthVaultClient client, RequestBody requestBody, Type responseType) 
            : base(client)
        {
            if (requestBody == null)
            {
                throw new ArgumentNullException("requestBody");
            }

            if (responseType == null)
            {
                throw new ArgumentNullException("responseType");
            }

            m_requestBody = requestBody;
            m_responseType = responseType;
        }
        public IsValidHealthVaultAccount(
            HealthVaultClient client,
            MSATicket msaTicket,
            Type responseType)
            : base(client)
        {
            if (msaTicket == null)
            {
                throw new ArgumentNullException("msaTicket");
            }

            if (responseType == null)
            {
                throw new ArgumentNullException("responseType");
            }

            m_msaTicket    = msaTicket;
            m_responseType = responseType;
        }
        // We can't pass in a HealthVaultClient directly because it's not a WinRT class. :(
        public ServiceMethodProvider(HealthVaultAppSettings appSettings)
        {
            ServiceInfo serviceInfo = (ServiceInfo)ServiceFactory.CreateServiceInfo(
                "https://platform.healthvault-ppe.com/platform/wildcat.ashx",
                "https://account.healthvault-ppe.com");

            AppInfo appInfo = new AppInfo();

            appInfo.MasterAppId          = Guid.Parse(appSettings.MasterAppId);
            appInfo.IsMultiInstanceAware = true;

            HealthVaultClient client = new HealthVaultClient(
                appInfo,
                serviceInfo,
                appSettings.IsFirstParty,
                appSettings.WebAuthorizer != null ? (IWebAuthorizer)appSettings.WebAuthorizer : null);

            m_serviceMethods = client.ServiceMethods;
        }
        public IsValidHealthVaultAccount(
            HealthVaultClient client,
            MSATicket msaTicket,
            Type responseType)
            : base(client)
        {
            if (msaTicket == null)
            {
                throw new ArgumentNullException("msaTicket");
            }

            if (responseType == null)
            {
                throw new ArgumentNullException("responseType");
            }

            m_msaTicket = msaTicket;
            m_responseType = responseType;
        }
 public RemoveApplicationRecordAuthorization(HealthVaultClient client, string personID, string recordID)
     : this(client, new RecordReference(personID, recordID))
 {
 }
 public CreateAuthTokensWithTicket(
     HealthVaultClient client, 
     string msaTicket)
     : this(client, new MSATicket(msaTicket))
 {
 }
Exemplo n.º 31
0
 public RemoveApplicationRecordAuthorization(HealthVaultClient client, string personID, string recordID)
     : this(client, new RecordReference(personID, recordID))
 {
 }
 public NewApplicationProvisioningInfo(HealthVaultClient client)
     : base(client)
 {
 }
 public BeginPutBlob(HealthVaultClient client, string personID, string recordID)
     : this(client, new RecordReference(personID, recordID))
 {
 }
 public GetServiceDefinition(HealthVaultClient client)
     : base(client)
 {
     m_data = null;
 }
 public CreateApplicationWithTicket(HealthVaultClient client, string msaTicket, string appInstanceName)
     : this(client, new MSATicket(msaTicket), new AppInstanceName(appInstanceName))
 {
 }
Exemplo n.º 36
0
 public GetAuthorizedPeople(HealthVaultClient client)
     : base(client)
 {
 }
 public GetPersonInfo(HealthVaultClient client)
     : base(client)
 {
 }
 public CreateApplicationWithTicket(HealthVaultClient client, string msaTicket, string appInstanceName)
     : this(client, new MSATicket(msaTicket), new AppInstanceName(appInstanceName))
 {
 }
 public CreateCredentialTokenWithTicket(HealthVaultClient client, string msaTicket)
     : this(client, new MSATicket(msaTicket))
 {
 }
 public NewApplicationProvisioningInfo(HealthVaultClient client)
     : base(client)
 {
 }
 public RemoveThings(HealthVaultClient client, string personID, string recordID, RequestBody body)
     : this(client, new RecordReference(personID, recordID), body)
 {
 }
 public CreateCredentialTokenWithTicket(HealthVaultClient client, string msaTicket)
     : this(client, new MSATicket(msaTicket))
 {
 }
 public GetServiceDefinition(HealthVaultClient client)
     : base(client)
 {
     m_data = null;
 }
Exemplo n.º 44
0
 public CreateAuthTokensWithTicket(
     HealthVaultClient client,
     string msaTicket)
     : this(client, new MSATicket(msaTicket))
 {
 }
 public GetServiceDefinition(HealthVaultClient client, DateTime lastUpdated)
     : base(client)
 {
     m_data = new object[] { new LastUpdatedDate(lastUpdated) };
 }
 public GetServiceDefinition(HealthVaultClient client, DateTime lastUpdated)
     : base(client)
 {
     m_data = new object[] { new LastUpdatedDate(lastUpdated) };
 }
 public GetAuthorizedPeople(HealthVaultClient client)
     : base(client)
 {
 }
 public GetPersonInfo(HealthVaultClient client)
     : base(client)
 {
 }
 public CreateAuthenticatedSessionToken(HealthVaultClient client)
     : base(client)
 {
 }