//This code create by CodeEngine ,don't modify

using System;
using System.Collections.Generic;
using System.Collections;
using Module.Log;
  
namespace GCGame.Table
{

    public class Tab_DailyCopy{

    public const string TAB_FILE_DATA = "DailyCopy";
	private const int _varCount = 15;
	
	public int GetId()
	{
		return Id;
	}
	
	public static bool Validate(string line)
	{
		var segments = 0;
		foreach (char c in line) 
			if (c == '\t')
				segments++;
		// Note: skip the 2nd column as it's the description;
		var result = segments == _varCount;
		if (!result)
			LogModule.ErrorLog(string.Format("Load {0} error as CodeSize:{1} not Equal DataSize:{2}", TAB_FILE_DATA, _varCount, segments));
		return result;
	}
	
	public Tab_DailyCopy()
	{
	}
	
	public Tab_DailyCopy(string line)
	{
		var segments = line.Split('\t');
          Id = int.Parse(segments[0]);
          SceneName = segments[2].Trim();
          PlayDesc = segments[3].Trim();
          OpenLv = int.Parse(segments[4]);
          BGPath = segments[5].Trim();
          IsLimitedTime = int.Parse(segments[6]);
          BuyRuleID = int.Parse(segments[7]);
          AwardTabID = int.Parse(segments[8]);
          InfoPanelTip = segments[9].Trim();
          TargetDesc = segments[10].Trim();
          UseItemParam = segments[11].Trim();
          CanSingleChallenge = int.Parse(segments[12]);
          CanTeamChallenge = int.Parse(segments[13]);
          CostItem = int.Parse(segments[14]);
          TeamTargetId = int.Parse(segments[15]);

	}
  
    public int Id { get; private set; }
  
    public string SceneName { get; private set; }
  
    public string PlayDesc { get; private set; }
  
    public int OpenLv { get; private set; }
  
    public string BGPath { get; private set; }
  
    public int IsLimitedTime { get; private set; }
  
    public int BuyRuleID { get; private set; }
  
    public int AwardTabID { get; private set; }
  
    public string InfoPanelTip { get; private set; }
  
    public string TargetDesc { get; private set; }
  
    public string UseItemParam { get; private set; }
  
    public int CanSingleChallenge { get; private set; }
  
    public int CanTeamChallenge { get; private set; }
  
    public int CostItem { get; private set; }
  
    public int TeamTargetId { get; private set; }
  

    }
}