[WIP] firebase init Error
This commit is contained in:
73
sdk-intergration/Packages/tysdk/Runtime/TYSdkModel.cs
Normal file
73
sdk-intergration/Packages/tysdk/Runtime/TYSdkModel.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
|
||||
namespace tysdk
|
||||
{
|
||||
public interface ITYSdkCallback { }
|
||||
|
||||
public class LoginInfo : ITYSdkCallback
|
||||
{
|
||||
public bool isSuccess;
|
||||
public int userId;
|
||||
public string StrUserId => userId.ToString();
|
||||
public string msg;
|
||||
public int code;
|
||||
}
|
||||
|
||||
public class PaymentInfo : ITYSdkCallback
|
||||
{
|
||||
public bool isSuccess => code == "0";
|
||||
public int count;
|
||||
public string orderId;
|
||||
public string productId;
|
||||
public string price;
|
||||
|
||||
public string code;
|
||||
public string msg;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
|
||||
}
|
||||
}
|
||||
|
||||
public class ATTInfo : ITYSdkCallback
|
||||
{
|
||||
public bool isAccepted;
|
||||
}
|
||||
|
||||
public class ADLoadInfo
|
||||
{
|
||||
public bool isSuccess => code == "0";
|
||||
public string code;
|
||||
public string errStr;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
|
||||
}
|
||||
}
|
||||
|
||||
public enum EShowAdState : byte
|
||||
{
|
||||
StartShow = 1,
|
||||
Reward = 2,
|
||||
Loading = 3,
|
||||
LoadFaild = 4,
|
||||
ShowFaild = 5,
|
||||
Closed = 6,
|
||||
Finished = 7,
|
||||
TimeOut = 8
|
||||
}
|
||||
|
||||
public class ShowADInfo
|
||||
{
|
||||
public string code;
|
||||
public string message;
|
||||
public string reward;
|
||||
public EShowAdState state => (EShowAdState)int.Parse(code);
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user