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

📄 bind.java

📁 SGIP1.2java SP 收发短信 采用java实现
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// 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;
		super.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, super.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, super.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;
		super.bodybytes[0] = SGIP_Command.IntToByte(i);
		s.getBytes(0, s.length(), super.bodybytes, 1);
		s1.getBytes(0, s1.length(), super.bodybytes, 17);
	}

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

⌨️ 快捷键说明

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