Class LivePackageInfo

    • Constructor Summary

      Constructors 
      Constructor Description
      LivePackageInfo()  
      LivePackageInfo​(LivePackageInfo source)
      NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getBuyTime()
      Get 购买时间。 注:此字段为北京时间(UTC+8时区)。
      String getExpireTime()
      Get 过期时间。 注:此字段为北京时间(UTC+8时区)。
      String getId()
      Get 包 ID。
      Long getLeft()
      Get 剩余量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
      Long getRenewalResult()
      Get 续购状态。 1 :续购成功。 0 :尚未续购。 <0 : 续购失败。 注意:此字段可能返回 null,表示取不到有效值。
      Long getStatus()
      Get 包状态,可选值: 0: 未使用。 1: 使用中。 2: 已过期。 3: 已冻结。 4: 已耗尽。 5: 已退款
      Long getTotal()
      Get 总量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。
      Long getType()
      Get 包类型,可选值: 0: 流量包。 1: 普通转码包。 2: 极速高清包。 3: 连麦包。
      Long getUsed()
      Get 使用量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
      Long getWillRenew()
      Get 是否自动续购。 注意:此字段可能返回 null,表示取不到有效值。
      void setBuyTime​(String BuyTime)
      Set 购买时间。 注:此字段为北京时间(UTC+8时区)。
      void setExpireTime​(String ExpireTime)
      Set 过期时间。 注:此字段为北京时间(UTC+8时区)。
      void setId​(String Id)
      Set 包 ID。
      void setLeft​(Long Left)
      Set 剩余量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
      void setRenewalResult​(Long RenewalResult)
      Set 续购状态。 1 :续购成功。 0 :尚未续购。 <0 : 续购失败。 注意:此字段可能返回 null,表示取不到有效值。
      void setStatus​(Long Status)
      Set 包状态,可选值: 0: 未使用。 1: 使用中。 2: 已过期。 3: 已冻结。 4: 已耗尽。 5: 已退款
      void setTotal​(Long Total)
      Set 总量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。
      void setType​(Long Type)
      Set 包类型,可选值: 0: 流量包。 1: 普通转码包。 2: 极速高清包。 3: 连麦包。
      void setUsed​(Long Used)
      Set 使用量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
      void setWillRenew​(Long WillRenew)
      Set 是否自动续购。 注意:此字段可能返回 null,表示取不到有效值。
      void toMap​(HashMap<String,​String> map, String prefix)
      Internal implementation, normal users should not use it.
    • Constructor Detail

      • LivePackageInfo

        public LivePackageInfo()
      • LivePackageInfo

        public LivePackageInfo​(LivePackageInfo source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getId

        public String getId()
        Get 包 ID。
        Returns:
        Id 包 ID。
      • setId

        public void setId​(String Id)
        Set 包 ID。
        Parameters:
        Id - 包 ID。
      • getTotal

        public Long getTotal()
        Get 总量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。
        Returns:
        Total 总量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。
      • setTotal

        public void setTotal​(Long Total)
        Set 总量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。
        Parameters:
        Total - 总量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。
      • getUsed

        public Long getUsed()
        Get 使用量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
        Returns:
        Used 使用量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
      • setUsed

        public void setUsed​(Long Used)
        Set 使用量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
        Parameters:
        Used - 使用量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
      • getLeft

        public Long getLeft()
        Get 剩余量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
        Returns:
        Left 剩余量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
      • setLeft

        public void setLeft​(Long Left)
        Set 剩余量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
        Parameters:
        Left - 剩余量。 注意:当为流量包时单位为字节。 当为转码包时单位为分钟。 当为连麦包时单位为小时。
      • getBuyTime

        public String getBuyTime()
        Get 购买时间。 注:此字段为北京时间(UTC+8时区)。
        Returns:
        BuyTime 购买时间。 注:此字段为北京时间(UTC+8时区)。
      • setBuyTime

        public void setBuyTime​(String BuyTime)
        Set 购买时间。 注:此字段为北京时间(UTC+8时区)。
        Parameters:
        BuyTime - 购买时间。 注:此字段为北京时间(UTC+8时区)。
      • getExpireTime

        public String getExpireTime()
        Get 过期时间。 注:此字段为北京时间(UTC+8时区)。
        Returns:
        ExpireTime 过期时间。 注:此字段为北京时间(UTC+8时区)。
      • setExpireTime

        public void setExpireTime​(String ExpireTime)
        Set 过期时间。 注:此字段为北京时间(UTC+8时区)。
        Parameters:
        ExpireTime - 过期时间。 注:此字段为北京时间(UTC+8时区)。
      • getType

        public Long getType()
        Get 包类型,可选值: 0: 流量包。 1: 普通转码包。 2: 极速高清包。 3: 连麦包。
        Returns:
        Type 包类型,可选值: 0: 流量包。 1: 普通转码包。 2: 极速高清包。 3: 连麦包。
      • setType

        public void setType​(Long Type)
        Set 包类型,可选值: 0: 流量包。 1: 普通转码包。 2: 极速高清包。 3: 连麦包。
        Parameters:
        Type - 包类型,可选值: 0: 流量包。 1: 普通转码包。 2: 极速高清包。 3: 连麦包。
      • getStatus

        public Long getStatus()
        Get 包状态,可选值: 0: 未使用。 1: 使用中。 2: 已过期。 3: 已冻结。 4: 已耗尽。 5: 已退款
        Returns:
        Status 包状态,可选值: 0: 未使用。 1: 使用中。 2: 已过期。 3: 已冻结。 4: 已耗尽。 5: 已退款
      • setStatus

        public void setStatus​(Long Status)
        Set 包状态,可选值: 0: 未使用。 1: 使用中。 2: 已过期。 3: 已冻结。 4: 已耗尽。 5: 已退款
        Parameters:
        Status - 包状态,可选值: 0: 未使用。 1: 使用中。 2: 已过期。 3: 已冻结。 4: 已耗尽。 5: 已退款
      • getWillRenew

        public Long getWillRenew()
        Get 是否自动续购。 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        WillRenew 是否自动续购。 注意:此字段可能返回 null,表示取不到有效值。
      • setWillRenew

        public void setWillRenew​(Long WillRenew)
        Set 是否自动续购。 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        WillRenew - 是否自动续购。 注意:此字段可能返回 null,表示取不到有效值。
      • getRenewalResult

        public Long getRenewalResult()
        Get 续购状态。 1 :续购成功。 0 :尚未续购。 <0 : 续购失败。 注意:此字段可能返回 null,表示取不到有效值。
        Returns:
        RenewalResult 续购状态。 1 :续购成功。 0 :尚未续购。 <0 : 续购失败。 注意:此字段可能返回 null,表示取不到有效值。
      • setRenewalResult

        public void setRenewalResult​(Long RenewalResult)
        Set 续购状态。 1 :续购成功。 0 :尚未续购。 <0 : 续购失败。 注意:此字段可能返回 null,表示取不到有效值。
        Parameters:
        RenewalResult - 续购状态。 1 :续购成功。 0 :尚未续购。 <0 : 续购失败。 注意:此字段可能返回 null,表示取不到有效值。