شركة التطبيقات المتكاملة لتصميم النظم البرمجية الخاصة

Integrated Applications Programming Company

Skip Navigation LinksHome » Code Library » Help

Public general use code classes and xml files that we've compiled and used over the years:

Help class for Next Generation Network (NGN) data model.

   1:  namespace Ia.Ngn.Cl.Model.Data
   2:  {
   3:      ////////////////////////////////////////////////////////////////////////////
   4:   
   5:      /// <summary publish="true">
   6:      /// Help class for Next Generation Network (NGN) data model.
   7:      /// </summary>
   8:      /// 
   9:      /// <remarks> 
  10:      /// Copyright © 2006-2019 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  11:      ///
  12:      /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
  13:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  14:      ///
  15:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  16:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  17:      /// 
  18:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  19:      /// 
  20:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  21:      /// </remarks> 
  22:      public partial class Help
  23:      {
  24:          /// <summary/>
  25:          public enum TelegramString { NeedHelpSendCommandSlashHelp, NotAuthorized, FrameworkNotAuthorized };
  26:   
  27:          /// <summary/>
  28:          public enum MailString { MaintenanceFind, ProvisionAccess, MaintenanceLogTransactionAms, MailProvisionMigrationMocGponPhaseIiHomeConnectionAndMigration };
  29:   
  30:          /// <summary/>
  31:          public Help() { }
  32:   
  33:          ////////////////////////////////////////////////////////////////////////////
  34:   
  35:          /// <summary>
  36:          ///
  37:          /// </summary>
  38:          public static string Text(MailString mailString)
  39:          {
  40:              string s;
  41:   
  42:              if (mailString == MailString.MaintenanceFind)
  43:              {
  44:                  s = @"";
  45:              }
  46:              else if (mailString == MailString.ProvisionAccess)
  47:              {
  48:                  s = @"
  49:   
  50:   
  51:  Task: Using email to add newly provisioned access ONTs to NGN's OFN Database and NGN's customer department database
  52:   
  53:  Procedure:
  54:   
  55:  - Authorize your email to create access ONTs into NGN databases. You can authorize your email by contacting Jasem (info@ia.com.kw)
  56:  - Add the subject line ""mail/provision/access/create"" to the email.
  57:  - Copy the new access ONT list form your Excel file and past it as text in the body of plain text email.
  58:  - Send the email to ofn.gov.kw@gmail.com
  59:  - You will receive an email indicating what access data was accepted.
  60:   
  61:  Sample email:
  62:   
  63:  To: ofn.gov.kw@gmail.com
  64:   
  65:  Subject: mail/provision/access/create
  66:   
  67:  105    704    SDQ.704.007    SDQ.704.007    N/A    SDQ    3    N/A    309    193    N/A    48575443E6B3007D    10.150.0.103    N/A    N/A
  68:  106    705    SDQ.705.025    SDQ.705.025    N/A    SDQ    3    N/A    307    160    N/A    485754437401DC83    10.150.0.153    N/A    N/A
  69:  107    705    SDQ.705.026    SDQ.705.026    N/A    SDQ    3    N/A    307    158    N/A    485754437404D983    10.150.0.154    N/A    N/A
  70:  108    706    SDQ.706.022    SDQ.706.022    N/A    SDQ    3    N/A    308    184    N/A    4857544374058483    10.150.0.162    N/A    N/A
  71:  109    709    SDQ.709.015    SDQ.709.015    N/A    SDQ    3    N/A    305    130    N/A    485754437405A883    10.150.1.15    N/A    N/A
  72:  110    811    SDQ.811.003    SDQ.811.003    N/A    SDQ    5    N/A    507    104    N/A    4857544374068083    10.150.8.3    DR. OWLID    66666221
  73:   
  74:  ----------------------------
  75:   
  76:  Task: Recieve a list of all access ONTs provisioned within the system for an area
  77:   
  78:  Procedure:
  79:   
  80:  - Authorize your email to read access ONTs into NGN databases. You can authorize your email by contacting Jasem (info@ia.com.kw)
  81:  - Add the subject line ""mail/provision/access/read/SAA"" to the email.
  82:  - Send the email to ofn.gov.kw@gmail.com
  83:  - You will receive an email with a list of all access data within the system.
  84:   
  85:  Sample email:
  86:   
  87:  To: ofn.gov.kw@gmail.com
  88:   
  89:  Subject: mail/provision/access/read/SAA
  90:   
  91:  ----------------------------
  92:   
  93:  Task: Delete a list of access ONTs
  94:   
  95:  Procedure:
  96:   
  97:  - Authorize your email to create access ONTs into NGN databases. You can authorize your email by contacting Jasem (info@ia.com.kw)
  98:  - Add the subject line ""mail/provision/access/delete"" to the email.
  99:  - List the access ONTs that you want to delete  in the body of plain text email with every entry in its own line.
 100:  - Send the email to ofn.gov.kw@gmail.com
 101:  - You will receive an email indicating what accesses were deleted.
 102:   
 103:  Sample email:
 104:   
 105:  To: ofn.gov.kw@gmail.com
 106:   
 107:  Subject: mail/provision/access/delete
 108:   
 109:  SDQ.704.007
 110:  SDQ.705.025
 111:   
 112:  ----------------------------
 113:   
 114:  For more information, contact Jasem (info@ia.com.kw)
 115:   
 116:  ";
 117:              }
 118:              else if (mailString == MailString.MaintenanceLogTransactionAms)
 119:              {
 120:                  s = @"
 121:   
 122:   
 123:  Task: Using email to insert the records of an AMS transaction file into NGN database
 124:   
 125:  Procedure:
 126:   
 127:  - You need to authorize the email that is allowed to send AMS transaction file. You can authorize your email by contacting Jasem (info@ia.com.kw)
 128:  - Add the subject line ""mail/maintenance/log/transaction/ams/insert"" to the email.
 129:  - Attach transaction file to email and send the email to ofn.gov.kw@gmail.com
 130:  - You will receive an email indicating status of insert.
 131:   
 132:  Sample email:
 133:   
 134:  To: ofn.gov.kw@gmail.com
 135:  Subject: mail/maintenance/log/transaction/ams/insert
 136:  Attachment: *.* (AMS transaction file)
 137:   
 138:   
 139:   
 140:   
 141:   
 142:   
 143:  For more information, contact Jasem (info@ia.com.kw)
 144:   
 145:  ";
 146:              }
 147:              else if (mailString == MailString.MailProvisionMigrationMocGponPhaseIiHomeConnectionAndMigration)
 148:              {
 149:                  s = @"
 150:   
 151:   
 152:  Task: Using email to insert the records of a GPON Phase II Home Connection and Migration file into NGN database
 153:   
 154:  Procedure:
 155:   
 156:  - You need to authorize the email that is allowed to send GPON Phase II Home Connection and Migration file. You can authorize your email by contacting Jasem (info@ia.com.kw)
 157:  - Add the subject line ""mail/provision/migration/moc-gpon-phase-ii-home-connection-and-migration/insert"" to the email.
 158:  - Attach migration file to email and send the email to ofn.gov.kw@gmail.com
 159:  - You will receive an email indicating status of insert.
 160:   
 161:  Sample email:
 162:   
 163:  To: ofn.gov.kw@gmail.com
 164:  Subject: mail/provision/migration/moc-gpon-phase-ii-home-connection-and-migration/insert
 165:  Attachment: *.* (GPON Phase II Home Connection and Migration file)
 166:   
 167:   
 168:   
 169:   
 170:   
 171:   
 172:  For more information, contact Jasem (info@ia.com.kw)
 173:   
 174:  ";
 175:              }
 176:              else s = string.Empty;
 177:   
 178:              return s;
 179:          }
 180:   
 181:          ////////////////////////////////////////////////////////////////////////////
 182:   
 183:          /// <summary>
 184:          ///
 185:          /// </summary>
 186:          public static string Text(string opcode)
 187:          {
 188:              string s;
 189:   
 190:              s = string.Empty;
 191:   
 192:              if (opcode.Contains("mail/"))
 193:              {
 194:                  #region mail
 195:   
 196:                  #endregion
 197:              }
 198:              else if (opcode.Contains("telegram/"))
 199:              {
 200:                  #region telegram
 201:   
 202:                  if (opcode.Contains("telegram/field-tnmd-supplier") || opcode.Contains("telegram/default"))
 203:                  {
 204:                      s = @"أرسل لي رسالة شخصية برقم هاتف أو صندوق مثل 23632222 أو 201.1.ZAH ...إلخ، وسأرد عليك برسالة شخصية خاصة تحتوي على كل المعلومات المتعلقة بالرقم الذي أرسلته. أي رسالة غير خاصة، من داخل المجموعة، وتبدأ بعلامة / سأعتبرها رسالة خاصة لي وأرد عليك بشكل خاص.
 205:   
 206:  تستطيع أيضاً الحصول على معلومات تحتاجها بإرسال أي من الأوامر التالية:
 207:   
 208:  /tnmd - TNMD list
 209:  /maintenance - Maintenance list
 210:  /qrn - QRN maintenance list
 211:  /ard - ARD maintenance list
 212:  /jhb - JHB maintenance list
 213:  /jls - JLS maintenance list
 214:  /rkk - RKK maintenance list
 215:  /sur - SUR maintenance list
 216:  /mgf - MGF maintenance list
 217:  /slb - SLB maintenance list
 218:  /msf - MSF maintenance list
 219:  /khp - KHP maintenance list
 220:  /khr - KHR maintenance list
 221:  /rsl - RSL maintenance list
 222:  /nokia - Nokia report list
 223:  /huawei - Huawei report list
 224:  /network_design_document - Network Design Document
 225:  /service_request_today - Service requests from today
 226:  /help - Help
 227:  ";
 228:                      /*
 229:  
 230:  Send me a command message that starts with a slash / followed by any string that represents a number or access name like /23632222 ...etc. The search result will provide all data related to the input. I will also conceder any group message that starts with / as private and will answer you directly on it.
 231:  
 232:  You can also get the data you need by sending any of the commands below:
 233:  
 234:                       */
 235:                  }
 236:                  else
 237:                  {
 238:   
 239:                  }
 240:   
 241:                  #endregion
 242:              }
 243:              else
 244:              {
 245:   
 246:              }
 247:   
 248:              return s;
 249:          }
 250:   
 251:          ////////////////////////////////////////////////////////////////////////////
 252:   
 253:          /// <summary>
 254:          ///
 255:          /// </summary>
 256:          public static string Text(TelegramString telegramString)
 257:          {
 258:              string s;
 259:   
 260:              if (telegramString == TelegramString.NeedHelpSendCommandSlashHelp)
 261:              {
 262:                  s = @"/help مساعدة؟ أرسل الأمر";
 263:   
 264:                  //s = @"Help? Send the command /help";
 265:              }
 266:              else if (telegramString == TelegramString.NotAuthorized)
 267:              {
 268:                  s = @"التطبيق غير مخول باجابتك. للحصول على تصريح اتصل بإدارة شبكة الألياف الضوئية في وزارة شؤون الخدمات";
 269:   
 270:                  // The bot is not authorized to reply to this message. For authorization please contact the Optical Fiber Network Department in the Ministry of Service Affairs
 271:              }
 272:              else if (telegramString == TelegramString.FrameworkNotAuthorized)
 273:              {
 274:                  s = @"التطبيق غير مخول بإجابتك فالرقم أو الصندوق لا ينتمي لنطاق عملك. للحصول على تصريح اتصل بإدارة شبكة الألياف الضوئية في وزارة شؤون الخدمات";
 275:   
 276:                  // The bot is not authorized to reply to this message because the number or access does not belong to your site authority domain. For authorization please contact the Optical Fiber Network Department in the Ministry of Service Affairs
 277:              }
 278:              else s = string.Empty;
 279:   
 280:              return s;
 281:          }
 282:   
 283:          ////////////////////////////////////////////////////////////////////////////
 284:          ////////////////////////////////////////////////////////////////////////////
 285:      }
 286:   
 287:      ////////////////////////////////////////////////////////////////////////////
 288:      ////////////////////////////////////////////////////////////////////////////
 289:  }