⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mm7submitreq.java

📁 彩信发送源代码,实现mm7接口
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
  }
  public void setEarliestDeliveryTime(Date time)  //设置将MM传送给接收方的最早理想时间(绝对时间)
  {
    this.EarliestDeliveryTime = time;
    EarliestDeliveryTimeAbsoluteExist = true;
  }
  public void setEarliestDeliveryTime(long duration)  //duration提供相对时间,以秒为单位
  {
    this.EarliestTimeDuration = duration;
    EarliestDeliveryTimeExist = true;
  }
  public long getEarliestDeliveryTimeRelative()  //获得将MM传送给接收方的最早相对理想时间
  {
    return(this.EarliestTimeDuration);
  }
  public Date getEarliestDeliveryTimeAbsolute()  //获得将MM传送给接收方的最早绝对理想时间
  {
    return(this.EarliestDeliveryTime);
  }
  public boolean isEarliestDeliveryTimeExist()  //是否存在将MM传送给接收方的最早理想时间。
  {
    return(EarliestDeliveryTimeExist);
  }
  public boolean isEarliestDeliveryTimeAbsolute()  //是否绝对时间格式
  {
    return(EarliestDeliveryTimeAbsoluteExist);
  }
  public void setDeliveryReport(boolean deliveryreport)  //设置是否需要发送报告的请求
  {
    this.DeliveryReport = deliveryreport;
    DeliveryReportExist = true;
  }
  public boolean getDeliveryReport()  //获得是否需要发送报告的请求
  {
    return(this.DeliveryReport);
  }
  public boolean isDeliveryReportExist()  //是否存在是否需要发送报告的请求
  {
    return(DeliveryReportExist);
  }
  public void setReadReply(boolean readreply)  //设置是否需要读取报告
  {
    this.ReadReply = readreply;
    ReadReplyExist = true;
  }
  public boolean getReadReply()  //获得是否需要读取报告
  {
    return(this.ReadReply);
  }
  public boolean isReadReplyExist()  //是否存在是否需要读取报告
  {
    return(ReadReplyExist);
  }
  public void setReplyCharging(boolean replyCharging)  //设置应答计费的请求
  {
    this.ReplyCharging = replyCharging;
    ReplyChargingExist = true;
  }
  public boolean getReplyCharging()  //获得应答计费的请求
  {
    return(this.ReplyCharging);
  }
  public boolean isReplyChargingExist()  //是否存在应答计费的请求
  {
    return(ReplyChargingExist);
  }
  public void setReplyDeadline(Date replyDeadline)  //设置ReplyChargingDeadline(绝对时间)
  {
    this.ReplyDeadline = replyDeadline;
    ReplyDeadlineAbsoluteExist = true;
  }
  public void setReplyDeadline(long duration)  //duration提供相对时间 、以秒为单位
  {
    this.ReplyDeadlineDuration = duration;
    ReplyDeadlineExist = true;
  }
  public long getReplyDeadlineRelative()  //获得ReplyChargingDeadline
  {
    return(this.ReplyDeadlineDuration);
  }
  public Date getReplyDeadlineAbsolute()
  {
    return(this.ReplyDeadline);
  }
  public boolean isReplyDeadlineExist()  //是否存在ReplyChargingDeadline
  {
    return(ReplyDeadlineExist);
  }
  public boolean isReplyDeadlineAbsoluteExist()  //是否绝对时间格式
  {
    return(ReplyDeadlineAbsoluteExist);
  }
  public void setReplyChargingSize(int replyChargingSize)  //设置ReplyChargingSize
  {
    this.ReplyChargingSize = replyChargingSize;
    ReplyChargingSizeExist = true;
  }
  public int getReplyChargingSize()  //获得ReplyChargingSize
  {
    return(this.ReplyChargingSize);
  }
  public boolean isReplyChargingSizeExist()  //是否存在ReplyChargingSize
  {
    return(ReplyChargingSizeExist);
  }
  public void setPriority(byte priority)  //设置Priority
  {
    this.Priority = priority;
    PriorityExist = true;
  }
  public byte getPriority()  //获得Priority
  {
    return(this.Priority);
  }
  public boolean isPriorityExist()  //是否存在Priority。消息的优先级(重要性)
  {                                 //(0=最低优先级,1=正常,2=紧急)
    return(PriorityExist);
  }
  public void setSubject(String subject)  //设置subject
  {
    this.Subject = subject;
    SubjectExist = true;
  }
  public String getSubject()  //获得subject
  {
    return(this.Subject);
  }
  public boolean isSubjectExist()  //是否存在subject
  {
    return(SubjectExist);
  }
  public void setAllowAdaptations(boolean allowAdaptations)  //设置allowAdaptations
  {
    this.AllowAdaptations = allowAdaptations;
    AllowAdaptationsExist = true;
  }
  public boolean getAllowAdaptations()  //获得allowAdaptations
  {
    return(this.AllowAdaptations);
  }
  public boolean isAllowAdaptationsExist()  //是否存在allowAdaptations
  {
    return(AllowAdaptationsExist);
  }
  public void setChargedParty(byte chargedParty)  //设置chargedParty
  {
    this.ChargedParty = chargedParty;
    ChargedPartyExist = true;
  }
  public byte getChargedParty()  //获得chargedParty
  {
    return(this.ChargedParty);
  }
  public boolean isChargedPartyExist()  //是否存在chargedParty,
  {                                     //指明VASP所提交MM的付费方,例如,发送方(0)、接收方(1)、
    return(ChargedPartyExist);                       //发送方和接收方(2)或两方均不付费(3)
  }
/*  public void setFeeTerminalID(String feeTerminalID)  //设置feeTerminalID
  {
    this.FeeTerminalID = feeTerminalID;
    FeeTerminalIDExist = true;
  }
  public String getFeeTerminalID()  //获得feeTerminalID
  {
    return(this.FeeTerminalID);
  }
  public boolean isFeeTerminalIDExist()  //是否存在feeTerminalID
  {                                      //在付费方既不是发送方,也不是接收方的情况下,
    return(FeeTerminalIDExist);                        //需要使用该字段标识付费方的E.164号码
  }*/
  public void setChargedPartyID(String chargedPartyID)  //设置feeTerminalID
  {
    this.ChargedPartyID = chargedPartyID;
    ChargedPartyIDExist = true;
  }
  public String getChargedPartyID()  //获得feeTerminalID
  {
    return(this.ChargedPartyID);
  }
  public boolean isChargedPartyIDExist()  //是否存在feeTerminalID
  {                                      //在付费方既不是发送方,也不是接收方的情况下,
    return(ChargedPartyIDExist);                        //需要使用该字段标识付费方的E.164号码
  }
  public void setContent(MMContent ammContent)  //设置MMContent
  {
    this.Content = ammContent;
    ContentExist = true;
  }
  public MMContent getContent()  //获得MMContent
  {
    return(this.Content);
  }
  public boolean isContentExist()  //是否存在MMContent
  {
    return(ContentExist);
  }
  public void setDistributionIndicator (boolean MDI)  //设置DistributionIndicator
  {
    this.DistributionIndicator = MDI;
    DistributionIndicatorExist = true;
  }
  public boolean getDistributionIndicator()  //获得DistributionIndicator
  {
    return(this.DistributionIndicator);
  }
  public boolean isDistributionIndicatorExist()  //是否存在DistributionIndicator
  {
    return(DistributionIndicatorExist);
  }
  //返回对象的文本表示
  public String toString()
  {
    StringBuffer sb = new StringBuffer();
    sb.append("VASPID=" + VASPID+"\n");
    sb.append("VASID=" + VASID+"\n");
    sb.append("ServiceCode=" + ServiceCode+"\n");
    sb.append("SenderAddress=" + SenderAddress+"\n");
    if(!To.isEmpty())
    {
      for(int i=0;i<To.size();i++)
        sb.append("To["+i+"]=" + To.get(i) + "\n");
    }
    if(!Cc.isEmpty())
    {
      for(int i=0;i<Cc.size();i++)
        sb.append("Cc["+i+"]=" + Cc.get(i) + "\n");
    }
    if(!Bcc.isEmpty())
    {
      for(int i=0;i<Bcc.size();i++)
        sb.append("Bcc["+i+"]=" + Bcc.get(i) + "\n");
    }
    sb.append("LinkedID=" + LinkedID+"\n");
    sb.append("MessageClass=" + MessageClass+"\n");
    sb.append("TimeStamp=" + TimeStamp+"\n");
    sb.append("ExpiryDate=" + ExpiryDate+"\n");
    sb.append("ExpiryDateDuration=" + ExpiryDateDuration+"\n");
    sb.append("EarliestDeliveryTime=" + EarliestDeliveryTime+"\n");
    sb.append("EarliestTimeDuration=" + EarliestTimeDuration+"\n");
    sb.append("DeliveryReport=" + DeliveryReport+"\n");
    sb.append("ReadReply=" + ReadReply+"\n");
    sb.append("ReplyCharging=" + ReplyCharging+"\n");
    sb.append("ReplyDeadline=" + ReplyDeadline+"\n");
    sb.append("ReplyDeadlineDuration=" + ReplyDeadlineDuration+"\n");
    sb.append("ReplyChargingSize=" + ReplyChargingSize+"\n");
    sb.append("Priority=" + Priority+"\n");
    sb.append("Subject=" + Subject+"\n");
    sb.append("AllowAdaptations=" + AllowAdaptations+"\n");
    sb.append("ChargedParty=" + ChargedParty+"\n");
    sb.append("ChargedPartyID=" + ChargedPartyID + "\n");
    sb.append("Content=" + Content+"\n");
    sb.append("DistributionIndicator=" + DistributionIndicator+"\n");
    sb.append("VASPIDExist=" + VASPIDExist+"\n");
    sb.append("VASIDExist=" + VASIDExist+"\n");
    sb.append("ServiceCodeExist=" + ServiceCodeExist+"\n");
    sb.append("SenderAddressExist=" + SenderAddressExist+"\n");
    sb.append("ToExist=" + ToExist+"\n");
    sb.append("CcExist=" + CcExist+"\n");
    sb.append("BccExist=" + BccExist+"\n");
    sb.append("LinkedIDExist=" + LinkedIDExist+"\n");
    sb.append("MessageClassExist=" + MessageClassExist+"\n");
    sb.append("TimeStampExist=" + TimeStampExist+"\n");
    sb.append("ExpiryDateExist=" + ExpiryDateExist+"\n");
    sb.append("ExpiryDateAbsoluteExist=" + ExpiryDateAbsoluteExist+"\n");
    sb.append("EarliestDeliveryTimeExist=" + EarliestDeliveryTimeExist+"\n");
    sb.append("EarliestDeliveryTimeAbsoluteExist=" +
              EarliestDeliveryTimeAbsoluteExist+"\n");
    sb.append("DeliveryReportExist=" + DeliveryReportExist+"\n");
    sb.append("ReadReplyExist=" + ReadReplyExist+"\n");
    sb.append("ReplyChargingExist=" + ReplyChargingExist+"\n");
    sb.append("ReplyDeadlineExist=" + ReplyDeadlineExist+"\n");
    sb.append("ReplyDeadlineAbsoluteExist=" + ReplyDeadlineAbsoluteExist+"\n");
    sb.append("ReplyChargingSizeExist=" + ReplyChargingSizeExist+"\n");
    sb.append("PriorityExist=" + PriorityExist+"\n");
    sb.append("SubjectExist=" + SubjectExist+"\n");
    sb.append("AllowAdaptationsExist=" + AllowAdaptationsExist+"\n");
    sb.append("ChargedPartyExist=" + ChargedPartyExist+"\n");
    sb.append("FeeTerminalIDExist=" + ChargedPartyIDExist+"\n");
    sb.append("ContentExist=" + ContentExist+"\n");
    sb.append("DistributionIndicatorExist=" + DistributionIndicatorExist+"\n");
    return sb.toString();
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -