67 lines
1.6 KiB
C#
67 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
using ServerCore;
|
|
using ServerBase;
|
|
|
|
|
|
namespace ServerCommon;
|
|
|
|
public class CharacterProfileAttrib : AttribBase
|
|
{
|
|
[JsonProperty]
|
|
public string SNSLick { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string Message { get; set; } = string.Empty;
|
|
|
|
public CharacterProfileAttrib()
|
|
: base(typeof(CharacterProfileAttrib).Name)
|
|
{ }
|
|
}
|
|
|
|
//=============================================================================================
|
|
// PK(Partition Key) : "character_profile#user_guid"
|
|
// SK(Sort Key) : ""
|
|
// DocType : CharacterProfileDoc
|
|
// CharacterProfileAttrib : {}
|
|
// ...
|
|
//=============================================================================================
|
|
public class CharacterProfileDoc : DynamoDbDocBase
|
|
{
|
|
private static string getPrefixOfPK() { return "character_profile#"; }
|
|
|
|
public CharacterProfileDoc()
|
|
: base(typeof(CharacterProfileDoc).Name)
|
|
{
|
|
appendAttribWrapperAll();
|
|
}
|
|
|
|
public CharacterProfileDoc(string ownerGuid)
|
|
: base(typeof(CharacterProfileDoc).Name)
|
|
{
|
|
setCombinationKeyForPK(ownerGuid);
|
|
|
|
appendAttribWrapperAll();
|
|
|
|
fillUpPrimaryKey(onMakePK(), onMakeSK());
|
|
}
|
|
|
|
private void appendAttribWrapperAll()
|
|
{
|
|
appendAttribWrapper(new AttribWrapper<CharacterProfileAttrib>());
|
|
}
|
|
|
|
protected override string onGetPrefixOfPK()
|
|
{
|
|
return getPrefixOfPK();
|
|
}
|
|
}
|