Exemple #1
0
        public object Post(SetUserDataRequest request)
        {
            Log.Debug("starting Post(SetUserDataRequest request)");
            Log.Debug($"You sent me UserData = {request.SetUserDataRequestPayload.UserData}");
            // ToDo: switch on the boolean
            // ToDo: These should be part of a UserData instance in plugin's Data instance
            RealEstateServicesData.GoogleAPIKeyEncrypted    = request.SetUserDataRequestPayload.UserData.GoogleAPIKeyEncrypted;
            RealEstateServicesData.GoogleAPIKeyPassPhrase   = request.SetUserDataRequestPayload.UserData.GoogleAPIKeyPassPhrase;
            RealEstateServicesData.HomeAwayAPIKeyEncrypted  = request.SetUserDataRequestPayload.UserData.HomeAwayAPIKeyEncrypted;
            RealEstateServicesData.HomeAwayAPIKeyPassPhrase = request.SetUserDataRequestPayload.UserData.HomeAwayAPIKeyPassPhrase;
            SetUserDataResponsePayload setUserDataResponsePayload = new SetUserDataResponsePayload("Ok");

            Log.Debug($"leaving Any(SetUserDataRequest request), returning setUserDataResponsePayload = {setUserDataResponsePayload}");
            return(new SetUserDataResponse(setUserDataResponsePayload));
        }
 public SetUserDataResponse(SetUserDataResponsePayload setUserDataResponsePayload)
 {
     SetUserDataResponsePayload = setUserDataResponsePayload;
 }