You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.0 KiB
C#
45 lines
1.0 KiB
C#
1 week ago
|
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;
|
||
|
}
|
||
|
}
|