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

📄 smssubmitmulti.cs

📁 详细说明:用C#编写的的中国联通Sgip协议
💻 CS
字号:
// 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:   SMSSubmitMulti.java
using System;
namespace com.sms.sgip.data
{
	
	// Referenced classes of package com.sms.sgip.data:
	//            SMSData, SgipException
	
	public class SMSSubmitMulti:SMSData
	{
		virtual public System.String SpNumber
		{
			get
			{
				return spNumber;
			}
			
			set
			{
				spNumber = value;
			}
			
		}
		virtual public System.String ChargeNumber
		{
			get
			{
				return chargeNumber;
			}
			
			set
			{
				chargeNumber = value;
			}
			
		}
		virtual public int UserCount
		{
			get
			{
				return userCount;
			}
			
			set
			{
				userCount = value;
			}
			
		}
		virtual public System.String[] UserNumber
		{
			get
			{
				return userNumber;
			}
			
			set
			{
				userNumber = value;
			}
			
		}
		virtual public System.String CorpId
		{
			get
			{
				return corpId;
			}
			
			set
			{
				corpId = value;
			}
			
		}
		virtual public System.String ServiceType
		{
			get
			{
				return serviceType;
			}
			
			set
			{
				serviceType = value;
			}
			
		}
		virtual public int FeeType
		{
			get
			{
				return feeType;
			}
			
			set
			{
				feeType = value;
			}
			
		}
		virtual public System.String FeeValue
		{
			get
			{
				return feeValue;
			}
			
			set
			{
				feeValue = value;
			}
			
		}
		virtual public System.String GivenValue
		{
			get
			{
				return givenValue;
			}
			
			set
			{
				givenValue = value;
			}
			
		}
		virtual public int AgentFlag
		{
			get
			{
				return agentFlag;
			}
			
			set
			{
				agentFlag = value;
			}
			
		}
		virtual public int MorelatetoMTFlag
		{
			get
			{
				return morelatetoMTFlag;
			}
			
			set
			{
				morelatetoMTFlag = value;
			}
			
		}
		virtual public int Priority
		{
			get
			{
				return priority;
			}
			
			set
			{
				priority = value;
			}
			
		}
		virtual public System.String ExpireTime
		{
			get
			{
				return expireTime;
			}
			
			set
			{
				expireTime = value;
			}
			
		}
		virtual public System.String ScheduleTime
		{
			get
			{
				return scheduleTime;
			}
			
			set
			{
				scheduleTime = value;
			}
			
		}
		virtual public int ReportFlag
		{
			get
			{
				return reportFlag;
			}
			
			set
			{
				reportFlag = value;
			}
			
		}
		virtual public int Tp_pid
		{
			get
			{
				return tp_pid;
			}
			
			set
			{
				tp_pid = value;
			}
			
		}
		virtual public int Tp_udhi
		{
			get
			{
				return tp_udhi;
			}
			
			set
			{
				tp_udhi = value;
			}
			
		}
		virtual public int MessageCoding
		{
			get
			{
				return messageCoding;
			}
			
			set
			{
				messageCoding = value;
			}
			
		}
		virtual public int MessageType
		{
			get
			{
				return messageType;
			}
			
			set
			{
				messageType = value;
			}
			
		}
		override public int MessageLength
		{
			get
			{
				return messageLength;
			}
			
			set
			{
				messageLength = value;
			}
			
		}
		virtual public System.String MessageContent
		{
			get
			{
				return messageContent;
			}
			
			set
			{
				messageContent = value;
			}
			
		}
		virtual public System.String Reserve
		{
			get
			{
				return reserve;
			}
			
			set
			{
				reserve = value;
			}
			
		}
		
		private System.String spNumber;
		private System.String chargeNumber;
		private int userCount;
		private System.String[] userNumber;
		private System.String corpId;
		private System.String serviceType;
		private int feeType;
		private System.String feeValue;
		private System.String givenValue;
		private int agentFlag;
		private int morelatetoMTFlag;
		private int priority;
		private System.String expireTime;
		private System.String scheduleTime;
		private int reportFlag;
		private int tp_pid;
		private int tp_udhi;
		private int messageCoding;
		private int messageType;
		private int msgLen;
		private System.String messageContent;
		private System.String reserve;
		
		public SMSSubmitMulti()
		{
			spNumber = "8166";
			corpId = "82062";
			serviceType = "mf";
			feeType = 1;
			feeValue = "0";
			givenValue = "0";
			agentFlag = 0;
			morelatetoMTFlag = 2;
			priority = 0;
			reportFlag = 1;
			tp_pid = 0;
			tp_udhi = 0;
			messageCoding = 15;
			messageType = 0;
		}
		
		//UPGRADE_TODO: Class“java.io.DataOutputStream”被转换为具有不同行为的 'System.IO.BinaryWriter'。 "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
		//UPGRADE_NOTE: Synchronized 关键字已从方法“write”中移除。添加了锁定表达式。 "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1027'"
		public virtual void  write(System.IO.BinaryWriter m_os)
		{
			lock (this)
			{
				int i = 0;
				int j = 0;
				sbyte[] temp = SMSData.hex2byte(messageContent);
				userCount = userNumber.Length;
				msgLen = temp.Length;
				messageLength = 164 + msgLen + (userCount - 1) * 21;
				commandID = 3;
				sbyte[] b = new sbyte[messageLength];
				sbyte[] head1 = getInteger4(messageLength);
				sbyte[] head2 = getInteger4(commandID);
				sbyte[] head3 = getInteger4(seqAddr);
				sbyte[] head4 = getInteger4(seqDate);
				sbyte[] head5 = getInteger4(sequence);
				sbyte[] body1 = SMSData.getText(21, spNumber);
				sbyte[] body2 = SMSData.getText(21, chargeNumber);
				sbyte body3 = getInteger1(userCount);
				sbyte[] body4 = getText(21, userNumber);
				sbyte[] body5 = SMSData.getText(5, corpId);
				sbyte[] body6 = SMSData.getText(10, serviceType);
				sbyte body7 = getInteger1(feeType);
				sbyte[] body8 = SMSData.getText(6, feeValue);
				sbyte[] body9 = SMSData.getText(6, givenValue);
				sbyte body10 = getInteger1(agentFlag);
				sbyte body11 = getInteger1(morelatetoMTFlag);
				sbyte body12 = getInteger1(priority);
				sbyte[] body13 = SMSData.getText(16, expireTime);
				sbyte[] body14 = SMSData.getText(16, scheduleTime);
				sbyte body15 = getInteger1(reportFlag);
				sbyte body16 = getInteger1(tp_pid);
				sbyte body17 = getInteger1(tp_udhi);
				sbyte body18 = getInteger1(messageCoding);
				sbyte body19 = getInteger1(messageType);
				sbyte[] body20 = getInteger4(msgLen);
				sbyte[] body21 = temp;
				sbyte[] body22 = SMSData.getText(8, reserve);
				for (j = 0; j < head1.Length; j++)
				{
					b[i] = head1[j];
					i++;
				}
				
				for (j = 0; j < head2.Length; j++)
				{
					b[i] = head2[j];
					i++;
				}
				
				for (j = 0; j < head3.Length; j++)
				{
					b[i] = head3[j];
					i++;
				}
				
				for (j = 0; j < head4.Length; j++)
				{
					b[i] = head4[j];
					i++;
				}
				
				for (j = 0; j < head5.Length; j++)
				{
					b[i] = head5[j];
					i++;
				}
				
				for (j = 0; j < body1.Length; j++)
				{
					b[i] = body1[j];
					i++;
				}
				
				for (j = 0; j < body2.Length; j++)
				{
					b[i] = body2[j];
					i++;
				}
				
				b[i] = body3;
				i++;
				for (j = 0; j < body4.Length; j++)
				{
					b[i] = body4[j];
					i++;
				}
				
				for (j = 0; j < body5.Length; j++)
				{
					b[i] = body5[j];
					i++;
				}
				
				for (j = 0; j < body6.Length; j++)
				{
					b[i] = body6[j];
					i++;
				}
				
				b[i] = body7;
				i++;
				for (j = 0; j < body8.Length; j++)
				{
					b[i] = body8[j];
					i++;
				}
				
				for (j = 0; j < body9.Length; j++)
				{
					b[i] = body9[j];
					i++;
				}
				
				b[i] = body10;
				i++;
				b[i] = body11;
				i++;
				b[i] = body12;
				i++;
				for (j = 0; j < body13.Length; j++)
				{
					b[i] = body13[j];
					i++;
				}
				
				for (j = 0; j < body14.Length; j++)
				{
					b[i] = body14[j];
					i++;
				}
				
				b[i] = body15;
				i++;
				b[i] = body16;
				i++;
				b[i] = body17;
				i++;
				b[i] = body18;
				i++;
				b[i] = body19;
				i++;
				for (j = 0; j < body20.Length; j++)
				{
					b[i] = body20[j];
					i++;
				}
				
				for (j = 0; j < body21.Length; j++)
				{
					b[i] = body21[j];
					i++;
				}
				
				for (j = 0; j < body22.Length; j++)
				{
					b[i] = body22[j];
					i++;
				}
				
				m_os.Write(SupportClass.ToByteArray(b));
			}
		}
	}
}

⌨️ 快捷键说明

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