Removed MagicOnion Added LiteNetLib Created client and server abstractions Fixed serialization bugs
25 lines
No EOL
585 B
C#
25 lines
No EOL
585 B
C#
#pragma warning disable 1591 // Missing XML comment for publicly visible type or member
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace RethinkDb.Driver.Model
|
|
{
|
|
public class Profile
|
|
{
|
|
public Profile(JArray profileObj)
|
|
{
|
|
this.ProfileObj = profileObj;
|
|
}
|
|
|
|
public JArray ProfileObj { get; }
|
|
|
|
public static Profile FromJsonArray(JArray profileObj)
|
|
{
|
|
if( profileObj == null || profileObj.Count == 0 )
|
|
{
|
|
return null;
|
|
}
|
|
return new Profile(profileObj);
|
|
}
|
|
}
|
|
} |