TrackContentBean.java 29 KB
1 2 3 4 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 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115
package com.wd.foundation.bean.analytics;

import android.text.TextUtils;


import com.wd.foundation.bean.adv.CompAdvBean;
import com.wd.foundation.bean.base.BaseBean;
import com.wd.foundation.bean.custom.act.BaseActivityBean;
import com.wd.foundation.bean.custom.comp.ChannelInfoBean;
import com.wd.foundation.bean.custom.comp.CompBean;
import com.wd.foundation.bean.custom.comp.PageBean;
import com.wd.foundation.bean.custom.comp.TopicInfoBean;
import com.wd.foundation.bean.custom.content.CommentItem;
import com.wd.foundation.bean.custom.content.ContentBean;
import com.wd.foundation.bean.custom.content.ContentTypeConstant;
import com.wd.foundation.bean.custom.content.PeopleMasterBean;
import com.wd.foundation.bean.mail.LiveInfo;
import com.wd.foundation.bean.mail.VliveBean;
import com.wd.foundation.bean.response.ConvertLiveBean;
import com.wd.foundation.wdkitcore.tools.ArrayUtils;
import com.wd.foundation.wdkitcore.tools.StringUtils;

import java.util.List;

/**
 * 埋点-内容bean
 *
 * @author baozhaoxin
 * @version [V1.0.0, 2023/3/14]
 * @since V1.0.0
 */
public class TrackContentBean extends BaseBean {

    /**
     * 页面名称
     */
    private String page_name;

    /**
     * 页面ID
     */
    private String page_id;

    /**
     * 内容名称
     */
    private String content_name;

    /**
     * 内容类型
     */
    private String content_type;
    /**
     * 内容分类
     */
    public String content_classify;

    /**
     * 内容ID
     */
    private String content_id;

    /**
     * 组件样式
     */
    private String component_type;

    /**
     * 组件ID
     */
    private String comp_id;

    /**
     * 稿件样式
     */
    private String content_style;

    /**
     * 专题类型
     */
    private String summary_type;

    /**
     * 专题id
     */
    private String summary_id;

    /**
     * 来源频道
     */
    public String channelSourceId;

    /**
     * 直播类别
     */
    private String live_type;

    /**
     * 所属一级频道ID
     */
    private String contentShowChannelId;

    /**
     * 所属一级频道名称
     */
    private String contentShowChannelName;

    /**
     * H5地址-待定
     */
    private String h5_url;

    /**
     * 外链地址-待定
     */
    private String link_url;

    /**
     * 下发属性-待定
     */
    private String feed_type;

    /**
     * 所属区域-待定
     */
    private String region_name;

    /**
     * 所在坑位-待定
     */
    public String position;


    /**
     * 专题类型
     */
    public String specialType;
    /**
     * 专题链接
     */
    public String specialLink;

    /**
     * 耗时
     */
    private int time_consuming;

    /**
     * 视频观看时长
     */
    private long duration;

    public String shareChannel;

    /**
     * 完播率
     */
    private int complet_rate;

    /**
     * 试验id
     */
    public String expIds;

    /**
     * 错误信息
     */
    private String error_information;

    /**
     * 错误信息
     */
    private String audio_error;

    /**
     * 分享方式
     */
    private String share_type;

    private boolean isLike;

    /**
     * 下载点击-H5地址
     */
    private String H5Url;

    /**
     * 消息发布时间
     */
    private String notice_time;

    /**
     * 推送标题
     */
    private String push_name;

    /**
     * 推送内容
     */
    private String push_content;

    /**
     * 推送着陆页名称
     */
    private String push_page;

    /**
     * 底部导航栏
     */
    private String bar_name;

    /**
     * 行为类型
     * 参照统一业务值说明
     */
    private String action;

    /**
     * 推荐数据
     */
    private TraceBean traceBean;
    /**
     * 开屏广告类型
     */
    public String ad_type;

    /**
     * 活动ID
     */
    public String activityId;
    /**
     * 活动名称
     */
    public String activityName;
    /**
     * 活动类型
     */
    public String activityType;
    /**
     * 活动状态
     */
    public String activityState;


    /**
     * 直播流类型
     * 直播必填,1、普通 2、VR
     */
    public String live_stream_type;

    public String vlive_id;
    public String vlive_name;
    public String live_mode;
    public String author_id;
    public String author_name;
    private String item_id;
    private String item_type;
    private String bhv_type;
    private String trace_id;
    private String trace_info;
    private String scene_id;
    private String bhv_value;

    private String extend_play;
    //    private  String expose ;
    private String stay;

    public String followPDUserId;

    public String followUserName;

    /**
     * 广告ID
     */
    private String adId;

    /**
     * 广告名称
     */
    private String adName;

    /**
     * 广告类型
     */
    private String adType;

    /**
     * 行为针对的物料ID
     */
    public String itemId;

    /**
     * 当前交互触点(或页面)
     */
    public String saPosition;

    /**
     * 视频观看时长
     */
    public long pybkDuration;

    /**
     * 发布标识,0-cms;1-表示号主发布 2-普通用户
     */
    private int rmhPlatform = 0;

    public int getRmhPlatform() {
        return rmhPlatform;
    }

    public void setRmhPlatform(int rmhPlatform) {
        this.rmhPlatform = rmhPlatform;
    }

    public String getAdId() {
        return adId;
    }

    public void setAdId(String adId) {
        this.adId = adId;
    }

    public String getAdName() {
        return adName;
    }

    public void setAdName(String adName) {
        this.adName = adName;
    }

    public String getAdType() {
        return adType;
    }

    public void setAdType(String adType) {
        this.adType = adType;
    }

    public boolean isLike() {
        return isLike;
    }

    public void setLike(boolean like) {
        isLike = like;
    }

    public String getBhv_type() {
        return bhv_type;
    }

    public void setBhv_type(String bhv_type) {
        this.bhv_type = bhv_type;
    }

    public String getContentShowChannelId() {
        return contentShowChannelId;
    }

    public void setContentShowChannelId(String contentShowChannelId) {
        this.contentShowChannelId = contentShowChannelId;
    }

    public String getChannelSourceId() {
        return channelSourceId;
    }

    public void setChannelSourceId(String channelSourceId) {
        this.channelSourceId = channelSourceId;
    }

    public String getPage_name() {
        return page_name;
    }

    public void setPage_name(String page_name) {
        this.page_name = page_name;
    }

    public String getPage_id() {
        return page_id;
    }

    public void setPage_id(String page_id) {
        this.page_id = page_id;
    }

    public String getContent_name() {
        return content_name;
    }

    public void setContent_name(String content_name) {
        this.content_name = content_name;
    }

    public String getContent_type() {
        return content_type;
    }

    public void setContent_type(String content_type) {
        this.content_type = content_type;
    }

    public String getContent_id() {
        return content_id;
    }

    public void setContent_id(String content_id) {
        this.content_id = content_id;
    }

    public String getComponent_type() {
        return component_type;
    }

    public void setComponent_type(String component_type) {
        this.component_type = component_type;
    }

    public String getComp_id() {
        return comp_id;
    }

    public void setComp_id(String comp_id) {
        this.comp_id = comp_id;
    }

    public String getContent_style() {
        return content_style;
    }

    public void setContent_style(String content_style) {
        this.content_style = content_style;
    }

    public String getSummary_type() {
        return summary_type;
    }

    public void setSummary_type(String summary_type) {
        this.summary_type = summary_type;
    }

    public String getSummary_id() {
        return summary_id;
    }

    public void setSummary_id(String summary_id) {
        this.summary_id = summary_id;
    }

    public String getLive_type() {
        return live_type;
    }

    public void setLive_type(String live_type) {
        this.live_type = live_type;
    }


    public String getH5_url() {
        return h5_url;
    }

    public void setH5_url(String h5_url) {
        this.h5_url = h5_url;
    }

    public String getLink_url() {
        return link_url;
    }

    public void setLink_url(String link_url) {
        this.link_url = link_url;
    }

    public void setAudio_error(String audio_error) {
        this.audio_error = audio_error;
    }

    public String getFeed_type() {
        return feed_type;
    }

    public void setFeed_type(String feed_type) {
        this.feed_type = feed_type;
    }

    public String getRegion_name() {
        return region_name;
    }

    public void setRegion_name(String region_name) {
        this.region_name = region_name;
    }


    public TraceBean getTraceBean() {
        return traceBean;
    }

    public void setTraceBean(TraceBean traceBean) {
        this.traceBean = traceBean;
    }

    public int getTime_consuming() {
        return time_consuming;
    }

    public void setTime_consuming(int time_consuming) {
        this.time_consuming = time_consuming;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public int getComplet_rate() {
        return complet_rate;
    }

    public void setComplet_rate(int complet_rate) {
        this.complet_rate = complet_rate;
    }

    public String getError_information() {
        return error_information;
    }

    public void setError_information(String error_information) {
        this.error_information = error_information;
    }

    public String getShare_type() {
        return share_type;
    }

    public void setShare_type(String share_type) {
        this.share_type = share_type;
    }

    public String getPush_name() {
        return push_name;
    }

    public void setPush_name(String push_name) {
        this.push_name = push_name;
    }

    public String getPush_content() {
        return push_content;
    }

    public void setPush_content(String push_content) {
        this.push_content = push_content;
    }

    public String getPush_page() {
        return push_page;
    }

    public void setPush_page(String push_page) {
        this.push_page = push_page;
    }

    public String getBar_name() {
        return bar_name;
    }

    public void setBar_name(String bar_name) {
        this.bar_name = bar_name;
    }

    public String getH5Url() {
        return H5Url;
    }

    public void setH5Url(String h5Url) {
        H5Url = h5Url;
    }

    public String getNotice_time() {
        return notice_time;
    }

    public void setNotice_time(String notice_time) {
        this.notice_time = notice_time;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }


    /**
     * ContentBean和CompBean 转换成 埋点对象( 组件和稿件使用)
     *
     * @param contentBean
     * @param compBean
     */
    public void contentBeantoBean(ContentBean contentBean, CompBean compBean) {

        if (compBean != null) {

            page_name = compBean.getTrackPageName();
            page_id = compBean.getCompInforPageId();

            String compStyle = compBean.getSourceStyle();

            // 本地自定义卡
            if ("customStyle".equals(compBean.getCompStyle())) {

            } else {
                if (compStyle != null) {
                    if (compStyle.contains("Zh_")) {
                        component_type = compStyle;
                        comp_id = compBean.getId();
                        contentBean.contentByStyle = component_type;
                    } else {
                        content_style = compStyle;
                    }
                }
            }


            ChannelInfoBean channelInfoBean = compBean.getChannelInfoBean();
            if (channelInfoBean != null) {
                contentShowChannelId = channelInfoBean.getChannelId();
                contentShowChannelName = channelInfoBean.getChannelName();
            }
            channelSourceId = contentShowChannelId;

        } else {
            content_style = contentBean.getAppStyle();
            page_name = contentBean.getFromPage();
            //普通页面
            String pageId = contentBean.getPageId();
            if (StringUtils.isBlank(pageId)) {
                page_id = contentBean.getFromPage();
            } else {
                page_id = pageId;
            }

        }

        // 广告
        CompAdvBean compAdvBean = contentBean.getCompAdvBean();
        if (compAdvBean != null) {
            adId = contentBean.getObjectId();
            adName = contentBean.getNewsTitle();
            adType = "2";
        }else {

            if (!TextUtils.isEmpty(contentBean.getObjectType())) {
                int type = Integer.parseInt(contentBean.getObjectType());
                if (ContentTypeConstant.URL_TYPE_FIVE == type && !TextUtils.isEmpty(contentBean.getObjectLevel())) {

                    summary_id = contentBean.getObjectId();
                    try {
                        int topicTemplate = Integer.parseInt(contentBean.getObjectLevel());
                        summary_type = summary_type_parameter(topicTemplate);
                        specialType = summary_type;
                        specialLink = contentBean.getLinkUrl();
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                    //所属区域,专题为4
                    region_name = "4";
                } else if (ContentTypeConstant.URL_TYPE_TWO == type && contentBean.getLiveInfo() != null) { // 直播

                    LiveInfo liveInfo = contentBean.getLiveInfo();

                    String liveState = liveInfo.getLiveState();

                    if (ContentTypeConstant.LIVE_WAIT.equals(liveState)) {
                        // 预约
                        live_type = LiveTypeConstants.LIVE_SUBSCRIBE;
                    } else if (ContentTypeConstant.LIVE_RUNNING.equals(liveState)) {
                        // 直播中
                        live_type = LiveTypeConstants.LIVE_RUNNING;
                    } else if (ContentTypeConstant.LIVE_END.equals(liveState)) {
                        // 结束
                        live_type = LiveTypeConstants.LIVE_END;
                    } else if (ContentTypeConstant.LIVE_CANCEL.equals(liveState)) {
                        // 取消
                        live_type = LiveTypeConstants.LIVE_CANCEL;
                    } else if (ContentTypeConstant.LIVE_PAUSED.equals(liveState)) {
                        // 暂停
                        live_type = LiveTypeConstants.LIVE_PAUSED;
                    }else {
                        //未知
                        live_type = LiveTypeConstants.UN_KNOW;
                    }

                    live_stream_type = liveInfo.getVrType() == 1 ? "2" : "1";
                    live_mode = "";
                    vlive_id = contentBean.getObjectId();
                    vlive_name = contentBean.getNewsTitle();
                } else if (ContentTypeConstant.URL_TYPE_SIX == type && ContentTypeConstant.URL_TYPE_TEN == type) {
            } else if (ContentTypeConstant.URL_TYPE_SIX == type || ContentTypeConstant.URL_TYPE_TEN == type) {

                    link_url = contentBean.getLinkUrl();

                } else if (ContentTypeConstant.URL_TYPE_THREE == type) {
                    // 活动

                    BaseActivityBean activityBean = contentBean.itemActivity;
                    if (activityBean != null) {
                        activityId = activityBean.getActivityId();
                        activityName = activityBean.getActivityTitle();
                        // 0-征集活动 1-抽奖活动 2-答题活动 3-投票活动  接口现在没给区分
                        activityType = activityBean.getActivityType();
                        // 2-已结束 1-进行中 0-未开始
                        activityState = activityBean.checkActivityStatus(System.currentTimeMillis()) + "";
                    }
                }

            }

        }


        PeopleMasterBean rmhInfo = contentBean.getRmhInfo();
        if (rmhInfo != null) {
            author_name = rmhInfo.getRmhName();
            author_id = rmhInfo.getRmhId();

            followUserName = rmhInfo.getRmhName();
            followPDUserId = rmhInfo.getRmhId();
        }

        content_name = contentBean.getNewsTitle();

        content_type = contentBean.getObjectType();

        content_id = contentBean.getObjectId();

        region_name = "2";
        expIds = contentBean.getExpIds();

        //分享渠道
        shareChannel = "";
        // 浏览时长
        duration = 0;

        TraceBean traceBean = new TraceBean();

        if (TextUtils.isEmpty(contentBean.getTraceId())) {

            if (contentBean != null && !TextUtils.isEmpty(contentBean.getObjectType())) {
                int type = Integer.parseInt(contentBean.getObjectType());
                String itemType = traceBean.toItemType(type);
                if (!TextUtils.isEmpty(itemType)) {
                }
            }

        } else {
            traceBean.itemId = contentBean.getItemId();
            traceBean.traceId = contentBean.getTraceId();
            traceBean.sceneId = contentBean.getSceneId();
            traceBean.subSceneId = contentBean.getSubSceneId();
            traceBean.cardItemId = contentBean.getCardItemId();
        }
        setTraceBean(traceBean);

        if(contentBean.getTopicInfoBean() != null){
            summary_type = contentBean.getTopicInfoBean().getTopicTypeWord();
            summary_id = contentBean.getTopicInfoBean().getTopicId();
            //所属区域,专题为4
            region_name = "4";
        }

        //信息流内容埋点,增加来源信息
        rmhPlatform = contentBean.getRmhPlatform();

        //所属区域处理
        if(StringUtils.isEqual("21003",page_id)){
            //播报页面,所属区域为5
            region_name = "5";
        }else if(StringUtils.isEqual("mainPersonalPage",page_name) ||
                StringUtils.isEqual("customerPersonalPage",page_name)){
            //个人主页,所属区域为6
            region_name = "6";
        }if(StringUtils.isEqual("search_result_page",page_name) ||
                StringUtils.isEqual("searchPage",page_name)){
            //搜索,所属区域为7
            region_name = "7";
        }if(StringUtils.isEqual("newsPaperPage",page_name)){
            //版面,所属区域为8
            region_name = "8";
        }
    }

    public TrackContentBean() {

    }

    /**
     * 评论
     *
     * @param likeComment
     */
    public void commentItemToBean(CommentItem likeComment, String pageName, String pageId) {

        page_name = pageName;
        page_id = pageId;

        content_name = likeComment.getRealCommentContent();
        content_id = likeComment.getId() + "";
        author_name = likeComment.getFromUserName();
        author_id = likeComment.getFromUserId();
    }


    //专属直播使用
    public TrackContentBean(ConvertLiveBean convertLiveBean) {
        if (convertLiveBean == null) {
            return;
        }
        this.page_id = "liveDetailPage";
        this.page_name = "liveDetailPage";
        this.content_name = convertLiveBean.getTitle();
        this.content_type = "2";
        this.content_id = convertLiveBean.getLiveId();
        this.component_type = "";
        this.comp_id = "";
        this.content_style = "";
        this.summary_type = "";//没找到合适的数据
        this.summary_id = "";//没找到字段
        //	直播预约	live_subscribe	直播中	live_running	直播回放	live_back
        String status = convertLiveBean.getStatus();
        if (ContentTypeConstant.LIVE_RUNNING.equals(status)) {
            this.live_type = LiveTypeConstants.LIVE_RUNNING;
        }else if (ContentTypeConstant.LIVE_WAIT.equals(status)) {
            this.live_type = LiveTypeConstants.LIVE_SUBSCRIBE;
        }else if (ContentTypeConstant.LIVE_END.equals(status)) {
            this.live_type = LiveTypeConstants.LIVE_END;
        } else if (ContentTypeConstant.LIVE_CANCEL.equals(status)) {
            // 取消
            live_type = LiveTypeConstants.LIVE_CANCEL;
        } else if (ContentTypeConstant.LIVE_PAUSED.equals(status)) {
            // 暂停
            live_type = LiveTypeConstants.LIVE_PAUSED;
        }else {
            //未知
            live_type = LiveTypeConstants.UN_KNOW;
        }
        this.contentShowChannelId = "";//没找到字段
        this.h5_url = "";//没找到字段
        this.link_url = "";//没找到字段
        //0-固定位
        //1-权重
        //2-精选-推荐因子
        //3-机器下发	确认接口是否有,接口没有不传
        this.feed_type = "";
        //开屏	0
        //挂角	1
        //信息流	2
        this.region_name = "";
//        this.position = "" ;//没找到字段
        // 直播流ID(视角id)
        List<VliveBean> liveSourceList = convertLiveBean.getLiveSourceList();
        VliveBean vliveBean = ArrayUtils.getListElement(liveSourceList, 0);
        if (vliveBean != null) {
            // 直播流ID
            vlive_id = vliveBean.getVliveId();
            // 1、普通 2、VR
            live_stream_type = "1";
            // 直播流名称
            vlive_name = vliveBean.getName();
        }
        //暂时标题意思
        if(convertLiveBean.getLiveSourceList() != null && convertLiveBean.getLiveSourceList().size()>0
        && convertLiveBean.getLiveSourceList().get(0) != null){
            this.vlive_name = convertLiveBean.getLiveSourceList().get(0).getName();
        }else{
            this.vlive_name = convertLiveBean.getTitle();
        }
        // 单路直播定义 1、单路直播2、多路直播   不是多路就是单路吧
        this.live_mode = convertLiveBean.getTplId() == 6 ? "2" : "1";
        this.author_id = convertLiveBean.getCreateUserId();
        this.author_name = convertLiveBean.getCreateUserName();
        this.item_id = convertLiveBean.getLiveId();
        this.item_type = "video";
        this.bhv_type = "";//没找到合适的数据
        this.trace_id = "";//没找到合适的数据
        this.trace_info = "";//没找到合适的数据
        this.scene_id = "";//没找到合适的数据
        this.bhv_value = "";//没找到合适的数据
        this.rmhPlatform = convertLiveBean.getRmhPlatform();
        //添加人民号信息
        PeopleMasterBean rmhInfo = convertLiveBean.getRmhInfo();
        if (rmhInfo != null) {
            this.author_name = rmhInfo.getRmhName();
            this.author_id = rmhInfo.getRmhId();
            this.followPDUserId = rmhInfo.getRmhId();
            this.followUserName = rmhInfo.getRmhName();
        }
        if(convertLiveBean.getNewsDetailBean() != null &&
                convertLiveBean.getNewsDetailBean().getReLInfo() != null){
            //设置频道id
            this.channelSourceId = convertLiveBean.getNewsDetailBean().getReLInfo().getChannelId();
        }
    }

    public String getBhv_value() {
        return bhv_value;
    }

    public void setBhv_value(String bhv_value) {
        this.bhv_value = bhv_value;
    }

    public String getExtend_play() {
        return extend_play;
    }

    public void setExtend_play(String extend_play) {
        this.extend_play = extend_play;
    }

    public String getStay() {
        return stay;
    }

    public void setStay(String stay) {
        this.stay = stay;
    }

    /**
     * TopicInfoBean 转换成 埋点对象
     *
     * @param bean
     */
    public void topicInfoBeanBeantoBean(TopicInfoBean bean) {
        page_name = "summaryDetailPage";
        page_id = "summaryDetailPage";
        content_name = bean.getTitle();
        content_type = bean.getTopicType()+"";
        content_id = bean.getTopicId();
        summary_id = bean.getTopicId();
        summary_type = bean.getTopicTypeWord();
        link_url = bean.getShareUrl();

        specialType = summary_type;
        specialLink = bean.linkUrl;
        //所属区域,专题为4
        region_name = "4";
        rmhPlatform = bean.getRmhPlatform();
    }


    /**
     * pageBean对象转换成TrackContentBean对象
     *
     * @param mPageBean
     */
    public void pageBeanToTrackContentBean(PageBean mPageBean) {

        page_name = mPageBean.getName();
        page_id = mPageBean.getId();
        content_id = mPageBean.getId();
        if (mPageBean.getTopicInfo() != null) {
            TopicInfoBean bean = mPageBean.getTopicInfo();
            //专题页pageId、pageName固定传值
            page_name = "summaryDetailPage";
            page_id = "summaryDetailPage";
            content_type = bean.getTopicType()+"";
            content_name = bean.getTitle();
            content_id = bean.getTopicId();
            summary_id = bean.getTopicId();
            summary_type = bean.getTopicTypeWord();
            link_url = bean.linkUrl;
            rmhPlatform = bean.getRmhPlatform();
            //所属区域,专题为4
            region_name = "4";
        } else if (mPageBean.getChannelInfo() != null) {
            content_type = ContentTypeConstant.URL_TYPE_ELEVEN + "";
            ChannelInfoBean bean = mPageBean.getChannelInfo();
            content_id = bean.getChannelId();
            contentShowChannelId = bean.getChannelId();
            contentShowChannelName = bean.getChannelName();
            region_name = "2";
        }
    }

    /**
     * 设置页面浏览
     *
     * @param duration
     */
    public void setExposure(long duration) {
        setAction(ActionConstants.BROWSE);
        setDuration(duration);
        //当前交互触点(或页面)
        position = page_name + "_" + action;
    }

    /**
     * 专题类型
     *
     * @param objectLevel
     * @return
     */
    private String summary_type_parameter(int objectLevel) {

        // 文章、音频、直播、 话题、早晚报、时间轴
        if (objectLevel == ContentTypeConstant.SUBJECT_TOPICTYPE_21) {
            specialType = SummaryTypeConstants.ARTICLE_TOPIC;
        } else if (objectLevel == ContentTypeConstant.SUBJECT_TOPICTYPE_22) {
            specialType = SummaryTypeConstants.AUDIO_TOPIC;
        } else if (objectLevel == ContentTypeConstant.SUBJECT_TOPICTYPE_23) {
            specialType = SummaryTypeConstants.LIVE_TOPIC;
        } else if (objectLevel == ContentTypeConstant.SUBJECT_TOPICTYPE_24) {
            specialType = SummaryTypeConstants.TALK_TOPIC;
        } else if (objectLevel == ContentTypeConstant.SUBJECT_TOPICTYPE_25) {
            specialType = SummaryTypeConstants.MORNING_AND_EVENING_NEWS_TOPIC;
        } else if (objectLevel == ContentTypeConstant.SUBJECT_TOPICTYPE_26) {
            specialType = SummaryTypeConstants.TIME_AXIS_TOPIC;
        }
        return specialType;
    }


    /**
     * 曝光或者点击
     *
     * @param isClick true:点击;false:曝光
     */
    public void exporeOrClick(boolean isClick) {

        if (isClick) {
            setAction(ActionConstants.DETAIL_PAGE_SHOW);
        } else {
            setAction(ActionConstants.SHOW);
        }
        //当前交互触点(或页面)
        position = page_name + "_" + action;
    }


    public void interestCardAction(boolean isClose) {
        if (isClose) {
            setAction(ActionConstants.CLOSEINTERESTCARD);
        } else {
            setAction(ActionConstants.SELECTINTERESTCARD);
        }

        position = page_name + "_" + action;
    }

    /**
     * 喜欢事件action
     *
     * @param isLike true:喜欢;false:不喜欢
     */
    public void likeAction(boolean isLike) {
        if (isLike) {
            setAction(ActionConstants.LIKE);
        } else {
            setAction(ActionConstants.DIS_LIKE);
        }
        //当前交互触点(或页面)
        position = page_name + "_" + action;
    }

    /**
     * 收藏事件action
     *
     * @param isCollect true:收藏;false:取消
     */
    public void collectAction(boolean isCollect) {
        if (isCollect) {
            action = ActionConstants.COLLECT;
        } else {
            action = ActionConstants.UN_COLLECT;
        }
        position = page_name + "_" + action;
    }

    /**
     * 评论 action
     */
    public void commentAction() {
        action = ActionConstants.COMMENT;
        position = page_name + "_" + action;
    }

    /**
     * 关注 action
     */
    public void followAction(boolean isFollow) {
        if (isFollow) {
            action = ActionConstants.FOLLOW;
        } else {
            action = ActionConstants.UN_FOLLOW;
        }
        position = page_name + "_" + action;
    }

    /**
     * 分享action
     */
    public void shareAction() {
        action = ActionConstants.SHARE;
        position = page_name + "_" + action;
    }
}