View Code for Service/Utils/RESTUrlUtil.Generated.cs

Source code for the file Service/Utils/RESTUrlUtil.Generated.cs is shown below.

using System;
using System.Collections.Generic;
using System.Linq;
using QuantumConcepts.Common.Utils;
using QuantumConcepts.Common.Extensions;

namespace QuantumConcepts.CodeGenerator.Sample.Service.Utils
{
	public partial class RESTUrlUtil : UrlUtil
	{
        public static partial class Web
        {
            public static partial class Service
            {
	            public static partial class RESTSvc
	            {
					public static ResourceUrl GetCourses(int page) { return new ResourceUrl(RESTSvc.Url, "Courses/{0}".FormatString(page)); }
					public static ResourceUrl GetCoursesCount() { return new ResourceUrl(RESTSvc.Url, "Courses/Count"); }
					public static ResourceUrl GetCoursesPageCount() { return new ResourceUrl(RESTSvc.Url, "Courses/PageCount"); }
					public static ResourceUrl GetCourseByID(int id) { return new ResourceUrl(RESTSvc.Url, "Course/{0}".FormatString(id)); }
					public static ResourceUrl GetCoursesBySemesterID(int semesterID, int page) { return new ResourceUrl(RESTSvc.Url, "Semester/{0}/Courses/{1}".FormatString(semesterID, page)); }
					public static ResourceUrl GetCoursesBySemesterIDCount(int semesterID) { return new ResourceUrl(RESTSvc.Url, "Semester/{0}/Courses/Count".FormatString(semesterID)); }
					public static ResourceUrl GetCoursesBySemesterIDPageCount(int semesterID) { return new ResourceUrl(RESTSvc.Url, "Semester/{0}/Courses/PageCount".FormatString(semesterID)); }
					public static ResourceUrl GetCoursesByTeacherID(int teacherID, int page) { return new ResourceUrl(RESTSvc.Url, "Teacher/{0}/Courses/{1}".FormatString(teacherID, page)); }
					public static ResourceUrl GetCoursesByTeacherIDCount(int teacherID) { return new ResourceUrl(RESTSvc.Url, "Teacher/{0}/Courses/Count".FormatString(teacherID)); }
					public static ResourceUrl GetCoursesByTeacherIDPageCount(int teacherID) { return new ResourceUrl(RESTSvc.Url, "Teacher/{0}/Courses/PageCount".FormatString(teacherID)); }
					public static ResourceUrl GetCourseBySemesterIDAndNumber(int semesterID, string number) { return new ResourceUrl(RESTSvc.Url, "/Course?SemesterID={semesterID}&Number={number}".FormatString(semesterID, number)); }
					public static ResourceUrl GetCourseBySemesterIDAndName(int semesterID, string name) { return new ResourceUrl(RESTSvc.Url, "/Course?SemesterID={semesterID}&Name={name}".FormatString(semesterID, name)); }
					public static ResourceUrl GetEnrollments(int page) { return new ResourceUrl(RESTSvc.Url, "Enrollments/{0}".FormatString(page)); }
					public static ResourceUrl GetEnrollmentsCount() { return new ResourceUrl(RESTSvc.Url, "Enrollments/Count"); }
					public static ResourceUrl GetEnrollmentsPageCount() { return new ResourceUrl(RESTSvc.Url, "Enrollments/PageCount"); }
					public static ResourceUrl GetEnrollmentByID(int id) { return new ResourceUrl(RESTSvc.Url, "Enrollment/{0}".FormatString(id)); }
					public static ResourceUrl GetEnrollmentsByStudentID(int studentID, int page) { return new ResourceUrl(RESTSvc.Url, "Student/{0}/Enrollments/{1}".FormatString(studentID, page)); }
					public static ResourceUrl GetEnrollmentsByStudentIDCount(int studentID) { return new ResourceUrl(RESTSvc.Url, "Student/{0}/Enrollments/Count".FormatString(studentID)); }
					public static ResourceUrl GetEnrollmentsByStudentIDPageCount(int studentID) { return new ResourceUrl(RESTSvc.Url, "Student/{0}/Enrollments/PageCount".FormatString(studentID)); }
					public static ResourceUrl GetEnrollmentsByCourseID(int courseID, int page) { return new ResourceUrl(RESTSvc.Url, "Course/{0}/Enrollments/{1}".FormatString(courseID, page)); }
					public static ResourceUrl GetEnrollmentsByCourseIDCount(int courseID) { return new ResourceUrl(RESTSvc.Url, "Course/{0}/Enrollments/Count".FormatString(courseID)); }
					public static ResourceUrl GetEnrollmentsByCourseIDPageCount(int courseID) { return new ResourceUrl(RESTSvc.Url, "Course/{0}/Enrollments/PageCount".FormatString(courseID)); }
					public static ResourceUrl GetEnrollmentByStudentIDAndCourseID(int studentID, int courseID) { return new ResourceUrl(RESTSvc.Url, "/Enrollment?StudentID={studentID}&CourseID={courseID}".FormatString(studentID, courseID)); }
					public static ResourceUrl GetMajors(int page) { return new ResourceUrl(RESTSvc.Url, "Majors/{0}".FormatString(page)); }
					public static ResourceUrl GetMajorsCount() { return new ResourceUrl(RESTSvc.Url, "Majors/Count"); }
					public static ResourceUrl GetMajorsPageCount() { return new ResourceUrl(RESTSvc.Url, "Majors/PageCount"); }
					public static ResourceUrl GetMajorByID(int id) { return new ResourceUrl(RESTSvc.Url, "Major/{0}".FormatString(id)); }
					public static ResourceUrl GetMajorByName(string name) { return new ResourceUrl(RESTSvc.Url, "/Major?Name={name}".FormatString(name)); }
					public static ResourceUrl GetSemesters(int page) { return new ResourceUrl(RESTSvc.Url, "Semesters/{0}".FormatString(page)); }
					public static ResourceUrl GetSemestersCount() { return new ResourceUrl(RESTSvc.Url, "Semesters/Count"); }
					public static ResourceUrl GetSemestersPageCount() { return new ResourceUrl(RESTSvc.Url, "Semesters/PageCount"); }
					public static ResourceUrl GetSemesterByID(int id) { return new ResourceUrl(RESTSvc.Url, "Semester/{0}".FormatString(id)); }
					public static ResourceUrl GetSemesterByBeginAndEnd(DateTime begin, DateTime end) { return new ResourceUrl(RESTSvc.Url, "/Semester?Begin={begin}&End={end}".FormatString(begin, end)); }
					public static ResourceUrl GetSemesterByName(string name) { return new ResourceUrl(RESTSvc.Url, "/Semester?Name={name}".FormatString(name)); }
					public static ResourceUrl GetStudents(int page) { return new ResourceUrl(RESTSvc.Url, "Students/{0}".FormatString(page)); }
					public static ResourceUrl GetStudentsCount() { return new ResourceUrl(RESTSvc.Url, "Students/Count"); }
					public static ResourceUrl GetStudentsPageCount() { return new ResourceUrl(RESTSvc.Url, "Students/PageCount"); }
					public static ResourceUrl GetStudentByID(int id) { return new ResourceUrl(RESTSvc.Url, "Student/{0}".FormatString(id)); }
					public static ResourceUrl GetStudentsByMajorID(int majorID, int page) { return new ResourceUrl(RESTSvc.Url, "Major/{0}/Students/{1}".FormatString(majorID, page)); }
					public static ResourceUrl GetStudentsByMajorIDCount(int majorID) { return new ResourceUrl(RESTSvc.Url, "Major/{0}/Students/Count".FormatString(majorID)); }
					public static ResourceUrl GetStudentsByMajorIDPageCount(int majorID) { return new ResourceUrl(RESTSvc.Url, "Major/{0}/Students/PageCount".FormatString(majorID)); }
					public static ResourceUrl GetStudentBySSN(string sSN) { return new ResourceUrl(RESTSvc.Url, "/Student?SSN={sSN}".FormatString(sSN)); }
					public static ResourceUrl GetTeachers(int page) { return new ResourceUrl(RESTSvc.Url, "Teachers/{0}".FormatString(page)); }
					public static ResourceUrl GetTeachersCount() { return new ResourceUrl(RESTSvc.Url, "Teachers/Count"); }
					public static ResourceUrl GetTeachersPageCount() { return new ResourceUrl(RESTSvc.Url, "Teachers/PageCount"); }
					public static ResourceUrl GetTeacherByID(int id) { return new ResourceUrl(RESTSvc.Url, "Teacher/{0}".FormatString(id)); }
					public static ResourceUrl GetTeacherBySSN(string sSN) { return new ResourceUrl(RESTSvc.Url, "/Teacher?SSN={sSN}".FormatString(sSN)); }
				}
			}
		}
	}
}