// Path: app/src/main/java/com/miz/functions/PreferenceKeys.java
// public static final String TVSHOWS_COLLECTION_LAYOUT = "prefsSeasonsLayout";


import android.content.Context;
import android.preference.PreferenceManager;
import com.miz.mizuu.R;
import java.io.File;
import static com.miz.functions.PreferenceKeys.TVSHOWS_COLLECTION_LAYOUT;
/*
 * Copyright (C) 2014 Michell Bak
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.miz.functions;





public class GridSeason implements Comparable<GridSeason> {
	
	private Context mContext;
	private String mShowId, mHeaderText, mSubtitleText, mSubtitleTextSimple;
	private int mSeason, mEpisodeCount, mWatchedCount;
	private boolean mUseGridView;
	private File mCover;
	
	public GridSeason(Context context, String showId, int season, int episodeCount, int watchedCount, File cover) {
		mContext = context;
        mShowId = showId;
		mSeason = season;
		mEpisodeCount = episodeCount;
		mWatchedCount = watchedCount;
		mCover = cover;
		
// Path: app/src/main/java/com/miz/functions/PreferenceKeys.java
// public static final String TVSHOWS_COLLECTION_LAYOUT = "prefsSeasonsLayout";


// Path: app/src/main/java/com/miz/functions/GridSeason.java
import android.content.Context;
import android.preference.PreferenceManager;
import com.miz.mizuu.R;
import java.io.File;
import static com.miz.functions.PreferenceKeys.TVSHOWS_COLLECTION_LAYOUT;

/*
 * Copyright (C) 2014 Michell Bak
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.miz.functions;





public class GridSeason implements Comparable<GridSeason> {
	
	private Context mContext;
	private String mShowId, mHeaderText, mSubtitleText, mSubtitleTextSimple;
	private int mSeason, mEpisodeCount, mWatchedCount;
	private boolean mUseGridView;
	private File mCover;
	
	public GridSeason(Context context, String showId, int season, int episodeCount, int watchedCount, File cover) {
		mContext = context;
        mShowId = showId;
		mSeason = season;
		mEpisodeCount = episodeCount;
		mWatchedCount = watchedCount;
		mCover = cover;
		
		mUseGridView = PreferenceManager.getDefaultSharedPreferences(mContext).getString(TVSHOWS_COLLECTION_LAYOUT, mContext.getString(R.string.gridView)).equals(mContext.getString(R.string.gridView));