43 lines
1.7 KiB
C#
43 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
using Amazon.DynamoDBv2.DocumentModel;
|
|
|
|
using ServerCommon.BusinessLogDomain;
|
|
|
|
namespace GameServer
|
|
{
|
|
public static class SocialActionBusinessLogHelper
|
|
{
|
|
public static SocialActionLogInfo toSocialActionLogInfo(int socialActionId)
|
|
{
|
|
var social_action_log_info = new SocialActionLogInfo();
|
|
social_action_log_info.setSocialActionInfo(socialActionId);
|
|
return social_action_log_info;
|
|
}
|
|
|
|
public static void setSocialActionInfo(this SocialActionLogInfo logData, int socialActionId)
|
|
{
|
|
logData.SocialActionMetaId = socialActionId;
|
|
}
|
|
|
|
public static SocialActionSlotExchangeLogInfo toSocialActionSlotExchangeLogInfo(string usetGuid, int socialActionSlot, int oldSocialActionMetaId, int newSocialActionMetaId)
|
|
{
|
|
var social_action_slot_exchange_log_info = new SocialActionSlotExchangeLogInfo();
|
|
social_action_slot_exchange_log_info.setSocialActionSlotExchangeInfo(usetGuid, socialActionSlot, oldSocialActionMetaId, newSocialActionMetaId);
|
|
return social_action_slot_exchange_log_info;
|
|
}
|
|
|
|
public static void setSocialActionSlotExchangeInfo(this SocialActionSlotExchangeLogInfo logData, string usetGuid, int socialActionSlot, int oldSocialActionMetaId, int newSocialActionMetaId)
|
|
{
|
|
logData.UserGuid = usetGuid;
|
|
logData.SocialActionSlot = socialActionSlot;
|
|
logData.OldSocialActionMetaId = oldSocialActionMetaId;
|
|
logData.NewSocialActionMetaId = newSocialActionMetaId;
|
|
}
|
|
}
|
|
}
|