private void SetSettingsFromGetDeviceInfoResponseWS(GetDeviceInfoResponse WSGetDeviceInfoResponseInstance)
		{

			UserInformationInstance.MemberDeviceId = WSGetDeviceInfoResponseInstance.MemberDeviceID;

			AppUpdateSettingsInstance.UpdateFlag = WSGetDeviceInfoResponseInstance.appUpdateInfo.UpdateFlag;
			AppUpdateSettingsInstance.UpdateType = WSGetDeviceInfoResponseInstance.appUpdateInfo.UpdateType;
			AppUpdateSettingsInstance.VersionOfNewApp = WSGetDeviceInfoResponseInstance.appUpdateInfo.VersionOfNewApp;

			this.updateType = AppUpdateSettingsInstance.UpdateType;

			FirmwareUpdateInfoInstance = new FirmwareUpdateInfo();
			FirmwareUpdateInfoInstance.ModelFirmwareID = WSGetDeviceInfoResponseInstance.deviceFwUpdateInfo.ModelFirmwareID;
			FirmwareUpdateInfoInstance.VersionOfNewFirmware = WSGetDeviceInfoResponseInstance.deviceFwUpdateInfo.VersionOfNewFirmware;

			MemberServerProfileInstance = new MemberServerProfile();
			MemberServerProfileInstance.MemberDeviceID = WSGetDeviceInfoResponseInstance.MemberDeviceID;
			MemberServerProfileInstance.UpdateFlag = (int)WSGetDeviceInfoResponseInstance.UpdateFlag;
			MemberServerProfileInstance.UpdateFlagChanges = 0;
			MemberServerProfileInstance.SynchronizationID = WSGetDeviceInfoResponseInstance.SynchronizationID;
			MemberServerProfileInstance.ServerDateTime = WSGetDeviceInfoResponseInstance.ServerDateTime;


			this.clearTracker = WSGetDeviceInfoResponseInstance.ClearTrackerDataFlag;


			ProcessSignatureUploaded(WSGetDeviceInfoResponseInstance.SignatureUploadedDates);
			this.SeizureBlockInfoInstance = new SeizureBlockInfo();
			if(WSGetDeviceInfoResponseInstance.lastSeizureDataUploadInfo != null)
				ProcessSeizureUploaded(WSGetDeviceInfoResponseInstance.lastSeizureDataUploadInfo.SeizureDate,WSGetDeviceInfoResponseInstance.lastSeizureDataUploadInfo.BlockNumber);


			//User Settings
			UserSettingsInstance.Stride = WSGetDeviceInfoResponseInstance.userSettings.Stride;
			UserSettingsInstance.Weight = WSGetDeviceInfoResponseInstance.userSettings.Weight;
			UserSettingsInstance.RestMetabolicRate = WSGetDeviceInfoResponseInstance.userSettings.RestMetabolicRate;
			UserSettingsInstance.UnitOfMeasure = WSGetDeviceInfoResponseInstance.userSettings.UnitOfMeasure;
			UserSettingsInstance.DOBYear = WSGetDeviceInfoResponseInstance.userSettings.DOBYear;
			UserSettingsInstance.DOBMonth = WSGetDeviceInfoResponseInstance.userSettings.DOBMonth;
			UserSettingsInstance.DOBDay = WSGetDeviceInfoResponseInstance.userSettings.DOBDay;
			UserSettingsInstance.Age = WSGetDeviceInfoResponseInstance.userSettings.Age;

			// Device Settings
			string serverTime = WSGetDeviceInfoResponseInstance.ServerDateTime;
			bool timeFormat = WSGetDeviceInfoResponseInstance.DeviceTimeFormat;

			DateTime st = Motion.Mobile.Utilities.Utils.GetServerDateTimeFromString(serverTime);

			//
			this.timeDiff = WSGetDeviceInfoResponseInstance.AllowableTimeDifference;


			Debug.WriteLine("Date Time" + st);
			DeviceSettingsInstance.Year = st.Year - 2000;
			DeviceSettingsInstance.Month = st.Month;
			DeviceSettingsInstance.Day = st.Day;
			DeviceSettingsInstance.Hour = st.Hour;
			DeviceSettingsInstance.Minute = st.Minute;
			DeviceSettingsInstance.Second = st.Second;
			DeviceSettingsInstance.HourType = timeFormat;



			//Company Settings
			CompanySettingsInstance.TenacitySteps = WSGetDeviceInfoResponseInstance.companySettings.TenacitySteps;
			CompanySettingsInstance.IntensitySteps = WSGetDeviceInfoResponseInstance.companySettings.IntensitySteps;
			CompanySettingsInstance.IntensityTime = WSGetDeviceInfoResponseInstance.companySettings.IntensityTime;
			CompanySettingsInstance.IntensityMinuteThreshold = WSGetDeviceInfoResponseInstance.companySettings.IntensityMinuteThreshold;
			CompanySettingsInstance.IntensityRestMinuteAllowed = WSGetDeviceInfoResponseInstance.companySettings.IntensityRestMinuteAllowed;
			CompanySettingsInstance.IntensityCycle = WSGetDeviceInfoResponseInstance.companySettings.IntensityCycle;
			CompanySettingsInstance.FrequencySteps = WSGetDeviceInfoResponseInstance.companySettings.FrequencySteps;
			CompanySettingsInstance.FrequencyCycleTime = WSGetDeviceInfoResponseInstance.companySettings.FrequencyCycleTime;
			CompanySettingsInstance.FrequencyCycle = WSGetDeviceInfoResponseInstance.companySettings.FrequencyCycle;
			CompanySettingsInstance.FrequencyCycleInterval = WSGetDeviceInfoResponseInstance.companySettings.FrequencyCycleInterval;


			//Exercise Settings
			ExerciseSettingsInstance.SyncTimeInterval = WSGetDeviceInfoResponseInstance.exerciseSettings.SyncTimeInterval;
			ExerciseSettingsInstance.DataSyncEnable = WSGetDeviceInfoResponseInstance.exerciseSettings.DataSyncEnable;
			ExerciseSettingsInstance.FrequencyAlarmEnable = WSGetDeviceInfoResponseInstance.exerciseSettings.FrequencyAlarmEnable;

			//Signature Settings
			SignatureSettingsInstance.SamplingFrequency = WSGetDeviceInfoResponseInstance.signatureSettings.SamplingFrequency;
			SignatureSettingsInstance.SamplingTime = WSGetDeviceInfoResponseInstance.signatureSettings.SamplingTime;
			SignatureSettingsInstance.SamplingCycle = WSGetDeviceInfoResponseInstance.signatureSettings.SamplingCycle;
			SignatureSettingsInstance.SamplingThreshold = WSGetDeviceInfoResponseInstance.signatureSettings.SamplingThreshold;
			SignatureSettingsInstance.SamplingTotalBlocks = WSGetDeviceInfoResponseInstance.signatureSettings.SamplingTotalBlocks;

			//Seizure Settings
			SeizureSettingsInstance.SeizureSettingsEnable = WSGetDeviceInfoResponseInstance.seizureSettings.SeizureSettingsEnable;
			SeizureSettingsInstance.SeizureSamplingFrequency = WSGetDeviceInfoResponseInstance.seizureSettings.SeizureSamplingFrequency;
			SeizureSettingsInstance.SeizureNumberOfRecords = WSGetDeviceInfoResponseInstance.seizureSettings.SeizureNumberOfRecords;
			SeizureSettingsInstance.SeizureSamplingTime = WSGetDeviceInfoResponseInstance.seizureSettings.SeizureSamplingTime;

		}
		private void SetSettingsFromActivateDeviceWithMemberResponseWS(ActivateDeviceWithMemberResponse WSActivateDeviceWithMemberResponseInstance)
		{
			//UserInfo
			UserInformationInstance.MemberDeviceId = WSActivateDeviceWithMemberResponseInstance.MemberDeviceID;


			// Device Data Settings
			DeviceDataInstance = new DeviceData();
			DeviceDataInstance.AdvertiseMode = WSActivateDeviceWithMemberResponseInstance.AdvertiseMode;
			DeviceDataInstance.TrackerSensitivity = WSActivateDeviceWithMemberResponseInstance.TrackerSensitivity;
			this.ScreenFlowList = WSActivateDeviceWithMemberResponseInstance.ScreenFlow;

			//User Settings
			UserSettingsInstance.Stride = WSActivateDeviceWithMemberResponseInstance.userSettings.Stride;
			UserSettingsInstance.Weight = WSActivateDeviceWithMemberResponseInstance.userSettings.Weight;
			UserSettingsInstance.RestMetabolicRate = WSActivateDeviceWithMemberResponseInstance.userSettings.RestMetabolicRate;
			UserSettingsInstance.UnitOfMeasure = WSActivateDeviceWithMemberResponseInstance.userSettings.UnitOfMeasure;
			UserSettingsInstance.DOBYear = WSActivateDeviceWithMemberResponseInstance.userSettings.DOBYear;
			UserSettingsInstance.DOBMonth = WSActivateDeviceWithMemberResponseInstance.userSettings.DOBMonth;
			UserSettingsInstance.DOBDay = WSActivateDeviceWithMemberResponseInstance.userSettings.DOBDay;
			UserSettingsInstance.Age = WSActivateDeviceWithMemberResponseInstance.userSettings.Age;

			// Device Settings
			string serverTime = WSActivateDeviceWithMemberResponseInstance.ServerDateTime;
			bool timeFormat = WSActivateDeviceWithMemberResponseInstance.DeviceTimeFormat;

			DateTime st = Motion.Mobile.Utilities.Utils.GetServerDateTimeFromString(serverTime);

			// 
			this.timeDiff = WSActivateDeviceWithMemberResponseInstance.AllowableTimeDifference;


			Debug.WriteLine("Date Time" + st);
			DeviceSettingsInstance.Year = st.Year - 2000;
			DeviceSettingsInstance.Month = st.Month;
			DeviceSettingsInstance.Day = st.Day;
			DeviceSettingsInstance.Hour = st.Hour;
			DeviceSettingsInstance.Minute = st.Minute;
			DeviceSettingsInstance.Second = st.Second;
			DeviceSettingsInstance.HourType = timeFormat;

			this.clearTracker = WSActivateDeviceWithMemberResponseInstance.ClearTrackerDataFlag;


			MemberServerProfileInstance = new MemberServerProfile();
			MemberServerProfileInstance.MemberDeviceID = WSActivateDeviceWithMemberResponseInstance.MemberDeviceID;
			MemberServerProfileInstance.UpdateFlag = (int)WSActivateDeviceWithMemberResponseInstance.UpdateFlag;
			MemberServerProfileInstance.UpdateFlagChanges = (int)WSActivateDeviceWithMemberResponseInstance.UpdateFlag;
			MemberServerProfileInstance.SynchronizationID = WSActivateDeviceWithMemberResponseInstance.SynchronizationID;
			MemberServerProfileInstance.ServerDateTime = WSActivateDeviceWithMemberResponseInstance.ServerDateTime;

			//Company Settings
			CompanySettingsInstance.TenacitySteps = WSActivateDeviceWithMemberResponseInstance.companySettings.TenacitySteps;
			CompanySettingsInstance.IntensitySteps = WSActivateDeviceWithMemberResponseInstance.companySettings.IntensitySteps;
			CompanySettingsInstance.IntensityTime = WSActivateDeviceWithMemberResponseInstance.companySettings.IntensityTime;
			CompanySettingsInstance.IntensityMinuteThreshold = WSActivateDeviceWithMemberResponseInstance.companySettings.IntensityMinuteThreshold;
			CompanySettingsInstance.IntensityRestMinuteAllowed = WSActivateDeviceWithMemberResponseInstance.companySettings.IntensityRestMinuteAllowed;
			CompanySettingsInstance.IntensityCycle = WSActivateDeviceWithMemberResponseInstance.companySettings.IntensityCycle;
			CompanySettingsInstance.FrequencySteps = WSActivateDeviceWithMemberResponseInstance.companySettings.FrequencySteps;
			CompanySettingsInstance.FrequencyCycleTime = WSActivateDeviceWithMemberResponseInstance.companySettings.FrequencyCycleTime;
			CompanySettingsInstance.FrequencyCycle = WSActivateDeviceWithMemberResponseInstance.companySettings.FrequencyCycle;
			CompanySettingsInstance.FrequencyCycleInterval = WSActivateDeviceWithMemberResponseInstance.companySettings.FrequencyCycleInterval;


			//Exercise Settings
			ExerciseSettingsInstance.SyncTimeInterval = WSActivateDeviceWithMemberResponseInstance.exerciseSettings.SyncTimeInterval;
			ExerciseSettingsInstance.DataSyncEnable = WSActivateDeviceWithMemberResponseInstance.exerciseSettings.DataSyncEnable;
			ExerciseSettingsInstance.FrequencyAlarmEnable = WSActivateDeviceWithMemberResponseInstance.exerciseSettings.FrequencyAlarmEnable;

			//Signature Settings
			SignatureSettingsInstance.SamplingFrequency = WSActivateDeviceWithMemberResponseInstance.signatureSettings.SamplingFrequency;
			SignatureSettingsInstance.SamplingTime = WSActivateDeviceWithMemberResponseInstance.signatureSettings.SamplingTime;
			SignatureSettingsInstance.SamplingCycle = WSActivateDeviceWithMemberResponseInstance.signatureSettings.SamplingCycle;
			SignatureSettingsInstance.SamplingThreshold = WSActivateDeviceWithMemberResponseInstance.signatureSettings.SamplingThreshold;
			SignatureSettingsInstance.SamplingTotalBlocks = WSActivateDeviceWithMemberResponseInstance.signatureSettings.SamplingTotalBlocks;

			//Seizure Settings
			SeizureSettingsInstance.SeizureSettingsEnable = WSActivateDeviceWithMemberResponseInstance.seizureSettings.SeizureSettingsEnable;
			SeizureSettingsInstance.SeizureSamplingFrequency = WSActivateDeviceWithMemberResponseInstance.seizureSettings.SeizureSamplingFrequency;
			SeizureSettingsInstance.SeizureNumberOfRecords = WSActivateDeviceWithMemberResponseInstance.seizureSettings.SeizureNumberOfRecords;
			SeizureSettingsInstance.SeizureSamplingTime = WSActivateDeviceWithMemberResponseInstance.seizureSettings.SeizureSamplingTime;

		}