示例#1
0
 public FIIAPHandler(CLIABCommunicator _iabController, IDataProvider _dataProvider, FIBuildOptions _options)
 {
     iabController = _iabController;
     dataProvider  = _dataProvider;
     options       = _options;
     iabController.InitIAB(options.packageName, res => {
         if (res.Err == CLIABErr.Fine)
         {
             isAvailable = true;
         }
     });
 }
 public FIClientDataProvider(FIBuildOptions _buildOptions, FIRBaseDataTypeContainer _typeContainer)
 {
     buildOption       = _buildOptions;
     dataTypeContainer = _typeContainer;
     baseData          = new FIRData();
     if (System.IO.File.Exists(FilePath) == true)
     {
         string jsonStr  = System.IO.File.ReadAllText(FilePath);
         var    jsonData = JsonConvert.DeserializeObject <JObject>(jsonStr);
         baseData.DeserializeFromJson(dataTypeContainer, jsonData);
         Debug.Log("[ClientDataProvider] Loaded");
     }
     else
     {
         Debug.Log("[ClientDataProvider] New");
     }
 }
示例#3
0
 public FIHttp(FIBuildOptions _options, CLCM _cm)
 {
     settings = _options.httpSettings;
     cm       = _cm;
 }