using System.Collections.Generic;  
 | 
  
 | 
public class PhantasmPavilionChatExpressionHandler : IPhantasmPavilionTabHandler  
 | 
{  
 | 
  
 | 
    public string GetDescriptive(int id)  
 | 
    {  
 | 
        return EmojiPackConfig.Get(id).Descriptive;  
 | 
    }  
 | 
  
 | 
    public int GetExpireMinutes(int id)  
 | 
    {  
 | 
        return EmojiPackConfig.Get(id).ExpireMinutes;  
 | 
    }  
 | 
  
 | 
    public string GetImage(int id)  
 | 
    {  
 | 
        return EmojiPackConfig.Get(id).Image;  
 | 
    }  
 | 
  
 | 
    public string GetName(int id)  
 | 
    {  
 | 
        return EmojiPackConfig.Get(id).Name;  
 | 
    }  
 | 
  
 | 
    public int GetSortNum(int id)  
 | 
    {  
 | 
        return EmojiPackConfig.Get(id).SortNum;  
 | 
    }  
 | 
  
 | 
    public List<int> GetTableKeys()  
 | 
    {  
 | 
        return EmojiPackConfig.GetKeys();  
 | 
    }  
 | 
  
 | 
    public int GetUnlockDefault(int id)  
 | 
    {  
 | 
        return EmojiPackConfig.Get(id).UnlockDefault;  
 | 
    }  
 | 
  
 | 
    public bool Has(int id)  
 | 
    {  
 | 
        return EmojiPackConfig.HasKey(id);  
 | 
    }  
 | 
  
 | 
  
 | 
  
 | 
    public void SendUsePack(int id)  
 | 
    {  
 | 
        PhantasmPavilionModel.Instance.SendCA230SetChatBubbleBox(id);  
 | 
    }  
 | 
  
 | 
  
 | 
  
 | 
    public bool TryGetEffectID(int id, out int effectID)  
 | 
    {  
 | 
        effectID = 0;  
 | 
        if (!EmojiPackConfig.HasKey(id))  
 | 
            return false;  
 | 
        EmojiPackConfig config = EmojiPackConfig.Get(id);  
 | 
        if (!EffectConfig.HasKey(config.EffectID))  
 | 
            return false;  
 | 
        effectID = config.EffectID;  
 | 
        return true;  
 | 
    }  
 | 
  
 | 
  
 | 
  
 | 
  
 | 
    public bool TryGetUnLockAttr(int id, out int[] lightAttrTypeArr, out int[] lightAttrValueArr)  
 | 
    {  
 | 
        lightAttrTypeArr = new int[0];  
 | 
        lightAttrValueArr = new int[0];  
 | 
        return false;  
 | 
    }  
 | 
  
 | 
    public bool TryGetUnLockNeedItem(int id, out int itemId, out int count)  
 | 
    {  
 | 
        itemId = 0;  
 | 
        count = 0;  
 | 
        if (!EmojiPackConfig.HasKey(id))  
 | 
            return false;  
 | 
        EmojiPackConfig config = EmojiPackConfig.Get(id);  
 | 
  
 | 
        if (config.UnlockNeedItemList.IsNullOrEmpty())  
 | 
            return false;  
 | 
        itemId = config.UnlockNeedItemList[0][0];  
 | 
        count = config.UnlockNeedItemList[0][1];  
 | 
        return true;  
 | 
    }  
 | 
}  
 |