예제 #1
0
    public static PictureData ToPictureData(PictureDb p)
    {
        FillAlgorithm fillType = DbTypeConvertor.FillAlgFromDb(p.FillType);

        return(new PictureData(PictureType.Local, p.PackId, p.PicId, fillType)
        {
            HasSave = (p.HasSave == 1),
            Solved = (p.Solved == 1),
            PicClass = DbTypeConvertor.PicClassFromDb(p.PicClass)
        });
    }