/*
* VITacademics
* Copyright (C) 2015 Aneesh Neelam <neelam.aneesh@gmail.com>
* Copyright (C) 2015 Saurabh Joshi <saurabhjoshi94@outlook.com>
* Copyright (C) 2015 Gaurav Agerwala <gauravagerwala@gmail.com>
* Copyright (C) 2015 Karthik Balakrishnan <karthikb351@gmail.com>
* Copyright (C) 2015 Pulkit Juneja <pulkit.16296@gmail.com>
* Copyright (C) 2015 Hemant Jain <hemanham@gmail.com>
* Copyright (C) 2015 Darshan Mehta <darshanmehta17@gmail.com>
*
* This file is part of VITacademics.
*
* VITacademics is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VITacademics is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VITacademics. If not, see <http://www.gnu.org/licenses/>.
*/
package com.karthikb351.vitinfo2.contract;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
import co.uk.rushorm.core.RushObject;
import co.uk.rushorm.core.annotations.RushList;
import co.uk.rushorm.core.annotations.RushRenamed;
import co.uk.rushorm.core.annotations.RushTableAnnotation;
@RushTableAnnotation
public class FriendCourse extends RushObject {
@Expose
@SerializedName("class_number")
private int classNumber;
@Expose
@SerializedName("course_code")
private String courseCode;
@Expose
@SerializedName("course_title")
private String courseTitle;
@Expose
@SerializedName("subject_type")
private String subjectType;
@Expose
@SerializedName("ltpjc")
@RushRenamed(names = {"ltpc"})
private String ltpjc;
@Expose
@SerializedName("course_mode")
private String courseMode;
@Expose
@SerializedName("course_option")
private String courseOption;
@Expose
@SerializedName("slot")
private String slot;
@Expose
@SerializedName("venue")
private String venue;
@Expose
@SerializedName("faculty")
private String faculty;
@Expose
@SerializedName("project_title")
private String projectTitle;
@Expose
@SerializedName("course_type")
private int courseType;
@Expose
@SerializedName("credits")
private int credits;
@Expose
@SerializedName("class_length")
private int classLength;
@Expose
@SerializedName("timings")
@RushList(classType = Timing.class)
private List<Timing> timings;
public FriendCourse() {
}
public FriendCourse(int classNumber, String courseCode, String courseTitle, String subjectType, String ltpjc, String courseMode, String courseOption, String slot, String venue, String faculty, String projectTitle, int courseType, int credits, int classLength, List<Timing> timings) {
this.classNumber = classNumber;
this.courseCode = courseCode;
this.courseTitle = courseTitle;
this.subjectType = subjectType;
this.ltpjc = ltpjc;
this.courseMode = courseMode;
this.courseOption = courseOption;
this.slot = slot;
this.venue = venue;
this.faculty = faculty;
this.projectTitle = projectTitle;
this.courseType = courseType;
this.credits = credits;
this.classLength = classLength;
this.timings = timings;
}
public int getClassNumber() {
return classNumber;
}
public void setClassNumber(int classNumber) {
this.classNumber = classNumber;
}
public String getCourseCode() {
return courseCode;
}
public void setCourseCode(String courseCode) {
this.courseCode = courseCode;
}
public String getCourseTitle() {
return courseTitle;
}
public void setCourseTitle(String courseTitle) {
this.courseTitle = courseTitle;
}
public String getSubjectType() {
return subjectType;
}
public void setSubjectType(String subjectType) {
this.subjectType = subjectType;
}
public String getLtpjc() {
return ltpjc;
}
public void setLtpjc(String ltpjc) {
this.ltpjc = ltpjc;
}
public String getCourseMode() {
return courseMode;
}
public void setCourseMode(String courseMode) {
this.courseMode = courseMode;
}
public String getCourseOption() {
return courseOption;
}
public void setCourseOption(String courseOption) {
this.courseOption = courseOption;
}
public String getSlot() {
return slot;
}
public void setSlot(String slot) {
this.slot = slot;
}
public String getVenue() {
return venue;
}
public void setVenue(String venue) {
this.venue = venue;
}
public String getFaculty() {
return faculty;
}
public void setFaculty(String faculty) {
this.faculty = faculty;
}
public String getProjectTitle() {
return projectTitle;
}
public void setProjectTitle(String projectTitle) {
this.projectTitle = projectTitle;
}
public int getCourseType() {
return courseType;
}
public void setCourseType(int courseType) {
this.courseType = courseType;
}
public int getCredits() {
return credits;
}
public void setCredits(int credits) {
this.credits = credits;
}
public int getClassLength() {
return classLength;
}
public void setClassLength(int classLength) {
this.classLength = classLength;
}
public List<Timing> getTimings() {
if (timings != null) {
return timings;
}
return new ArrayList<>();
}
public void setTimings(List<Timing> timings) {
this.timings = timings;
}
}