public static AuthBitflyer createAuthBitflyer(string filePath) { AuthBitflyer result = null; try { if (filePath == null || filePath.Length <= 0) { result = null; return(result); } AuthBitflyer auth = null; if (UtilityJson.loadFromJson <AuthBitflyer>(out auth, filePath) != 0) { result = null; return(result); } result = auth; } catch (Exception ex) { Console.WriteLine("exception: {0}", ex.Message); result = null; } finally { } return(result); }
public static BoxerConfig loadBoxerConfig(string filePath) { BoxerConfig result = null; try { if (filePath == null || filePath.Length <= 0) { result = null; return(result); } BoxerConfig config = null; if (UtilityJson.loadFromJson <BoxerConfig>(out config, filePath) != 0) { result = null; return(result); } result = config; } catch (Exception ex) { Console.WriteLine("exception: {0}", ex.Message); result = null; } finally { } return(result); }