author Javen
 *  copyright description export class Menu { private button : Button [ ] ; private matchrule : Matchrule ; public get getButton ( ) : Button [ ] { return this . button ; } public set setButton ( button ) { this . button = button ; } public get getMatchrule ( ) : Matchrule { return this . matchrule ; } public set setMatchrule ( matchrule ) { this . matchrule = matchrule ; } } export class Button { private name : string ; private type : string ; constructor ( name ? , type ? ) { this . name = name || '' ; this . type = type || '' ; } public get getName ( ) : string { return this . name ; } public set setName ( name ) { this . name = name ; } public get getType ( ) : string { return this . type ; } public set setType ( type ) { this . type = type ; } } export class ClickButton extends Button { private key : string ; constructor ( name ? , type ? , key ? ) { super ( name , type ) ; this . key = key || '' ; } public get getKey ( ) : string { return this . key ; } public set setKey ( key ) { this . key = key ; } } export class ComButton extends Button { private sub_button : Button [ ] ; constructor ( name ? , type ? , sub_button ? ) { super ( name , type ) ; this . sub_button = sub_button || [ ] ; } public get getSubButton ( ) : Button [ ] { return this . sub_button ; } public set setSubButton ( sub_button ) { this . sub_button = sub_button ; } } export class MediaButton extends Button { private media_id : string ; constructor ( name ? , type ? , media_id ? ) { super ( name , type ) ; this . media_id = media_id || '' ; } public get getMediaId ( ) : string { return this . media_id ; } public set setMediaId ( media_id ) { this . media_id = media_id ; } } export class ViewButton extends Button { private url : string ; constructor ( name ? , type ? , url ? ) { super ( name , type ) ; this . url = url || '' ; } public get getUrl ( ) : string { return this . url ; } public set setUrl ( url ) { this . url = url ; } } export class Matchrule { private tag_id : string ; private sex : string ; private country : string ; private province : string ; private city : string ; private client_platform_type : string ; private language : string ; public get getTagId ( ) : string { return this . tag_id ; } public set setTagId ( tag_id ) { this . tag_id = tag_id ; } public get getSex ( ) : string { return this . sex ; } public set setSex ( sex ) { this . sex = sex ; } public get getCountry ( ) : string { return this . country ; } public set setCountry ( country ) { this . country = country ; } public get getProvince ( ) : string { return this . province ; } public set setProvince ( province ) { this . province = province ; } public get getCity ( ) : string { return this . city ; } public set setCity ( city ) { this . city = city ; } public get getClientPlatformType ( ) : string { return this . client_platform_type ; } public set setClientPlatformType ( client_platform_type ) { this . client_platform_type = client_platform_type ; } public get getLanguage ( ) : string { return this . language ; } public set setLanguage ( language ) { this . language = language ; } }