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

📄 submitstruct.java

📁 用电信smgp网关发送小灵通的短信,有api和简单调用样例
💻 JAVA
字号:
package com.ut.smgp.api.structure;
import com.ut.smgp.api.function.function;
import com.ut.smgp.api.configure.configure;
public class submitStruct {

  private function fun=new function();

  private int msgType=0;
  private int needReport=0;
  private int prioprity=5;
  private String serviceId="";
  private String feeType="";
  private String feeCode="";
  private String fixedFee="";
  private String validTime="";
  private String atTime="";
  private String srcTermId="";
  private String chargeTermId="";
  private int destTermIdCount=0;
  private int msgLength=0;
  private String reserve="";
  private String[] destTermId;
  private int msgFormat;
  private byte[] msgContent;
  private String msgId;

  public submitStruct() {
  }

  public int getMsgType() {
    return msgType;
  }
  public byte getMsgType_byte() {
   return (byte)msgType;
 }

  public void setMsgType(int msgType) {
    this.msgType = msgType;
  }
  public int getNeedReport() {
    return needReport;
  }

  public byte getNeedReport_byte() {
    return (byte)needReport;
  }

  public void setNeedReport(int needReport) {
    this.needReport = needReport;
  }

  public int getPrioprity() {
    return prioprity;
  }

  public byte getPrioprity_byte() {
    return (byte)prioprity;
  }

  public void setPrioprity(int prioprity) {
    this.prioprity = prioprity;
  }


  public String getServiceId() {
    return serviceId;
  }

  public byte[] getServiceId_byte() {
    return fun.getBytes(serviceId,10);
 }

  public void setServiceId(String serviceId) {
    this.serviceId = serviceId;
  }

  public String getFeeType() {
    return feeType;
  }

  public byte[] getFeeType_byte() {
    return fun.getBytes(feeType,2);
 }

  public void setFeeType(String feeType) {
    this.feeType = feeType;
  }

  public String getFeeCode() {
    return feeCode;
  }

  public byte[] getFeeCode_byte() {
    return fun.getBytes(feeCode,6);
 }

  public void setFeeCode(String feeCode) {
    this.feeCode = feeCode;
  }
  public String getFixedFee() {
    return fixedFee;
  }
  public byte[] getFixedFee_byte() {
   return fun.getBytes(fixedFee,6);
 }

  public void setFixedFee(String fixedFee) {
    this.fixedFee = fixedFee;
  }
  public int getMsgFormat() {
    return msgFormat;
  }
  public byte getMsgFormat_byte() {
    return (byte)(msgFormat);
  }

  public void setMsgFormat(int msgFormat) {
    this.msgFormat = msgFormat;
  }

  public String getValidTime() {
    return validTime;
  }

  public byte[] getValidTime_byte() {
   return fun.getBytes(validTime,17);
 }

  public void setValidTime(String validTime) {
    this.validTime = validTime;
  }
  public String getAtTime() {
    return atTime;
  }

  public byte[] getAtTime_byte() {
   return fun.getBytes(atTime,17);
 }

  public void setAtTime(String atTime) {
    this.atTime = atTime;
  }
  public String getSrcTermId() {
    return srcTermId;
  }

  public byte[] getSrcTermId_byte() {
    return fun.getBytes(srcTermId,21);
  }

  public void setSrcTermId(String srcTermId) {
    this.srcTermId = srcTermId;
  }
  public String getChargeTermId() {
    return chargeTermId;
  }

  public byte[] getChargeTermId_byte() {
    return fun.getBytes(chargeTermId,21);
  }

  public void setChargeTermId(String chargeTermId) {
    this.chargeTermId = chargeTermId;
  }

  public int getDestTermIdCount() {
    return destTermIdCount;
  }

  public byte getDestTermIdCount_byte() {
    return (byte)destTermIdCount;
  }

  public void setDestTermIdCount(int destTermIdCount) {
    this.destTermIdCount = destTermIdCount;
  }
  public String[] getDestTermId() {
    return destTermId;
  }

  public byte[] getDestTermId_byte() {
    return fun.getBytes(destTermId,21);
  }

  public void setDestTermId(String[] destTermId) {
    this.destTermId = destTermId;
  }
  public int getMsgLength() {
    return msgLength;
  }
  public byte getMsgLength_byte() {
   return (byte)msgLength;
 }

  public void setMsgLength(int msgLength) {
    this.msgLength = msgLength;
  }
  public byte[] getMsgContent() {
    return msgContent;
  }
  public byte[] getMsgContent_byte() {
   //return fun.codeConver(msgContent,msgFormat).getBytes();
   //return fun.getBytes(msgContent,msgContent.length());
   //byte[] temp= msgContent.getBytes();
   //msgLength=temp.length;
   return msgContent;
  }

  public void setMsgContent(byte[] msgContent) {
    this.msgContent = msgContent;
  }
  public String getReserve() {
    return reserve;
  }
  public byte[] getReserve_byte() {
   return fun.getBytes(reserve,8);
 }

  public void setReserve(String reserve) {
    this.reserve = reserve;
  }

  public int getSubmitLength()
  {
    int i=0;
    i+=1+1+1+10+2+6+6+1+17+17+21+21+1;
    i+=getDestTermId_byte().length;
    i+=1;
    i+=getMsgContent_byte().length;
    i+=8;
    return i;
  }
  public String getMsgId() {
    return msgId;
  }
  public void setMsgId(String msgId) {
    this.msgId = msgId;
  }
}

⌨️ 快捷键说明

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