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

📄 mtaction.java

📁 华为java接口反编译结果!其中包含其所有接口实现过程
💻 JAVA
字号:
package com.kelefa.sms.action;

import com.kelefa.cmpp.mt.MtManager;
import com.kelefa.glidewindow.GlideWindow;
import com.opensymphony.xwork.Action;
import com.opensymphony.xwork.ActionSupport;


public class MtAction
    extends ActionSupport
{
  private String tel;
  private String content;
  private String Submit;
  private String loginMessage;
  private int lastActiveTest;
  private int todoSize;
  private int waitSize;
  private String result;

  public MtAction()
  {
  }

  public String execute()
      throws Exception
  {
    MtManager manager = MtManager.getInstance();
    if ( Submit != null ) {
      manager.submit( tel, content );
      result = "发送成功";
    }

    boolean logined = manager.isLogined();
    loginMessage = logined ? "已经链接" : "没有链接";

    lastActiveTest = ( ( int ) ( System.currentTimeMillis() -
				 manager.getLastActiveTest() ) / 1000 );

    GlideWindow glideWindow = manager.getGlideWindow();
    todoSize = glideWindow.getTodoSize();
    waitSize = glideWindow.getWaitSize();

    return Action.SUCCESS;
  }

  public void setTel( String tel )
  {
    this.tel = tel;
  }

  public void setContent( String content )
  {
    this.content = content;
  }

  public void setSubmit( String Submit )
  {
    this.Submit = Submit;
  }

  public String getTel()
  {
    return tel;
  }

  public String getLoginMessage()
  {
    return loginMessage;
  }

  public int getLastActiveTest()
  {
    return lastActiveTest;
  }

  public int getTodoSize()
  {
    return todoSize;
  }

  public int getWaitSize()
  {
    return waitSize;
  }

  public String getResult()
  {
    return result;
  }

}

⌨️ 快捷键说明

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