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

📄 bind.java

📁 短信服务的源码,可以连接联通SMG等短信网关进行短信发送
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   Bind.java

package spApi;


// Referenced classes of package spApi:
//            SGIP_Command

public class Bind extends SGIP_Command
{

    private static final int CommandLength = 41;
    private static final int CommandID = 1;
    private int LoginType;
    private int flag;
    private String LoginName;
    private String LoginPassword;

    public Bind(long l)
    {
        super(l, 41, 1);
        flag = 1;
    }

    public Bind()
    {
        super(41, 1);
        flag = 1;
    }

    public Bind(SGIP_Command sgip_command)
    {
        super(sgip_command);
        flag = 1;
    }

    public int GetFlag()
    {
        return flag;
    }

    public int GetLoginType()
    {
        return LoginType;
    }

    public void SetLoginType(int i)
    {
        LoginType = i;
        bodybytes[0] = SGIP_Command.IntToByte(i);
    }

    public String GetLoginName()
    {
        return LoginName;
    }

    public void SetLoginName(String s)
    {
        LoginName = s;
        byte abyte0[] = new byte[16];
        s.getBytes(0, s.length(), abyte0, 0);
        SGIP_Command.BytesCopy(abyte0, bodybytes, 0, 15, 1);
    }

    public String GetLoginPassword()
    {
        return LoginPassword;
    }

    public void SetLoginPassword(String s)
    {
        LoginPassword = s;
        byte abyte0[] = new byte[16];
        s.getBytes(0, s.length(), abyte0, 0);
        SGIP_Command.BytesCopy(abyte0, bodybytes, 0, 15, 17);
    }

    public Bind(long l, int i, String s, String s1)
    {
        super(l, 41, 1);
        flag = 1;
        LoginType = i;
        LoginName = s;
        LoginPassword = s1;
        bodybytes[0] = SGIP_Command.IntToByte(i);
        s.getBytes(0, s.length(), bodybytes, 1);
        s1.getBytes(0, s1.length(), bodybytes, 17);
    }

    public int readbody()
    {
        byte abyte0[] = new byte[16];
        LoginType = bodybytes[0];
        SGIP_Command.BytesCopy(bodybytes, abyte0, 1, 16, 0);
        LoginName = new String(abyte0);
        SGIP_Command.BytesCopy(bodybytes, abyte0, 17, 32, 0);
        LoginPassword = new String(abyte0);
        flag = 0;
        return 0;
    }
}

⌨️ 快捷键说明

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