Command.java 2.3 KB
Newer Older
严久程 committed
1
package com.yidianling.course.net;
严久程 committed
2

严久程 committed
3 4
import com.ydl.ydlcommon.data.http.BaseCommand;
import com.ydl.ydlcommon.router.YdlCommonOut;
严久程 committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82

/**
 * Created by Jim on 2018/2/26 0026.
 */

public class Command {
    //获取课程播放页 初始化数据
    public static class GetCoursePlayData extends BaseCommand {
        public int course_id;
        public int type;


        public GetCoursePlayData(int course_id, int type) {
            this.course_id = course_id;
            this.type = type;
        }

    }

    //参加课程
    public static class CourseAddOrder extends BaseCommand {
        public int course_id;
        public String from;

        public CourseAddOrder(int course_id) {
            this.course_id = course_id;
            this.from = YdlCommonOut.Companion.getChannelName();
        }

    }

    //课程提交回复
    public static class CourseCommitReply extends BaseCommand {
        public int courseId;
        public String content;//评论内容

        public CourseCommitReply(int course_id, String content) {
            this.courseId = course_id;
            this.content = content;
        }

    }

    //课程播放页--点赞
    public static class CoursePlayZan extends BaseCommand {

        public int course_id;

        public CoursePlayZan(int course_id) {
            this.course_id = course_id;
        }

    }

    //课程课后笔记列表
    public static class CourseReplyList extends BaseCommand {
        public int course_id;
        public int page;


        public CourseReplyList(int course_id, int page) {
            this.page = page;
            this.course_id = course_id;
        }

    }

    //获取课程列表
    public static class GetCourse extends BaseCommand {
        public int page;
        public int type;
        public int child_type;

        public GetCourse(int page, int type) {
            this.page = page;
            this.type = type;
        }

严久程 committed
83
        public GetCourse(int page, int type, int child_type) {
严久程 committed
84 85
            this.page = page;
            this.type = type;
严久程 committed
86
            this.child_type = child_type;
严久程 committed
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
        }
    }

    //获取课程专题
    public static class CourseSpecial extends BaseCommand {

        public int special_id;

        public CourseSpecial(int special_id) {
            this.special_id = special_id;
        }

    }

}