备份CatanBuilding瘦身独立工程
This commit is contained in:
44
LocalPackages/PlayFabSDK/Shared/Models/SharedModels.cs
Normal file
44
LocalPackages/PlayFabSDK/Shared/Models/SharedModels.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using PlayFab.Internal;
|
||||
|
||||
namespace PlayFab.SharedModels
|
||||
{
|
||||
public class HttpResponseObject
|
||||
{
|
||||
public int code;
|
||||
public string status;
|
||||
public object data;
|
||||
}
|
||||
|
||||
public class PlayFabBaseModel
|
||||
{
|
||||
public string ToJson()
|
||||
{
|
||||
var json = PluginManager.GetPlugin<ISerializerPlugin>(PluginContract.PlayFab_Serializer);
|
||||
return json.SerializeObject(this);
|
||||
}
|
||||
}
|
||||
|
||||
public interface IPlayFabInstanceApi { }
|
||||
|
||||
public class PlayFabRequestCommon : PlayFabBaseModel
|
||||
{
|
||||
public PlayFabAuthenticationContext AuthenticationContext;
|
||||
}
|
||||
|
||||
public class PlayFabResultCommon : PlayFabBaseModel
|
||||
{
|
||||
public PlayFabRequestCommon Request;
|
||||
public object CustomData;
|
||||
}
|
||||
|
||||
public class PlayFabLoginResultCommon : PlayFabResultCommon
|
||||
{
|
||||
public PlayFabAuthenticationContext AuthenticationContext;
|
||||
}
|
||||
|
||||
public class PlayFabResult<TResult> where TResult : PlayFabResultCommon
|
||||
{
|
||||
public TResult Result;
|
||||
public object CustomData;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user