//
// Created by #Suyghur, on 2021/06/21.
//

#ifndef EYUANGAMESDK_KTX_REQUEST_KIT_H
#define EYUANGAMESDK_KTX_REQUEST_KIT_H

#define PUBLIC_KEY "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCbROlODv7iVaFhRAomQ9kSoV+whoebwVUDWUd968V8jbLQg0bAh6ad22O1bo33f4zNmIuDzdQMGOVgRyuvKsS9GyE+gh4XPDpSUmi/bZTl0wr8Y/yTi8eW+sXxn6Ao4oo4bg+qPewUxjTS2u4Pe1Zl3IC48HFALTAo0PSSXS5b7wIDAQAB"

#include <jni.h>
#include "third_part/json/json.h"

class RequestKit {

public:
//    static std::string EncryptRequest(JNIEnv *env, jobject context, jstring params);

    static std::string EncryptRequest2(JNIEnv *env, jobject context, jstring key, jstring params);

//    static std::string DecryptResponse(JNIEnv *env, jobject context, jstring data);

    static std::string DecryptResponse2(JNIEnv *env, jobject context, jstring key, jstring data);


private:
    static Json::Value HandleRequest(JNIEnv *env, jstring params);
//
//    static std::string HandleResponse(JNIEnv *env, jstring data);

};


#endif //EYUANGAMESDK_KTX_REQUEST_KIT_H
