)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » Default (Ia.Ftn.Cl.Models.Ui.Maintenance.Report)

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

Maintenance Report data support class for the Fixed Telecommunications Network ui model

    1: using Microsoft.AspNetCore.Identity;
    2: using System;
    3: using System.Collections.Generic;
    4: using System.Linq;
    5: using System.Runtime.Serialization;
    6: using System.Text;
    7:  
    8: namespace Ia.Ftn.Cl.Models.Ui.Maintenance.Report
    9: {
   10:     ////////////////////////////////////////////////////////////////////////////
   11:  
   12:     /// <summary publish="true">
   13:     /// Maintenance Report data support class for the Fixed Telecommunications Network ui model
   14:     /// </summary>
   15:     /// 
   16:     /// <remarks> 
   17:     /// Copyright © 2017-2018 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   18:     /// </remarks> 
   19:     [DataContract(IsReference = true, Namespace = "kw.com.ia.ftn.api", Name = "apiMaintenanceReport")]
   20:     public class Default
   21:     {
   22:         private static List<Ia.Ftn.Cl.Models.Ui.ReportAccessServiceRequest> reportAccessServiceRequestList;
   23:  
   24:         /// <summary/>
   25:         [DataMember(Name = "result")]
   26:         public Ia.Cl.Models.Result Result { get; set; }
   27:  
   28:         /////////////////////////////////////////////////////////////////////////////////
   29:  
   30:         /// <summary>
   31:         ///
   32:         /// </summary>
   33:         public static void TnmdListForMail(Ia.Ftn.Cl.Models.Business.Administration.Framework framework, string opcode, string operand, out string subject, out string content)
   34:         {
   35:             string inputType, horizontalRule;
   36:             StringBuilder stringBuilder;
   37:             DateTime now;
   38:  
   39:             inputType = string.Empty;
   40:             horizontalRule = "===============================================";
   41:  
   42:             now = DateTime.UtcNow.AddHours(3);
   43:  
   44:             // subject can't have \r\n
   45:             subject = "Fixed Telecommunications Network's Operations Support System (FTN OSS) Find Result (" + now.ToString("yyyy-MM-dd HH:mm") + ")";
   46:             content = string.Empty;
   47:  
   48:             if (Ia.Ftn.Cl.Models.Business.Authority.FrameworkCanCreateReadUpdateDeleteAccessList(Ia.Ftn.Cl.Models.Business.Authority.PersistentStorageFunction.Create, framework))
   49:             {
   50:                 opcode = opcode.ToLower();
   51:  
   52:                 FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(framework, opcode, operand, inputType, horizontalRule, out stringBuilder);
   53:  
   54:                 stringBuilder.AppendLine(horizontalRule);
   55:                 stringBuilder.AppendLine(@"Help? Send message with ""mail/maintenance/find/help""");
   56:                 stringBuilder.AppendLine(horizontalRule);
   57:                 stringBuilder.AppendLine();
   58:  
   59:                 content = stringBuilder.ToString();
   60:             }
   61:             else
   62:             {
   63:                 content += "\r\n";
   64:                 content += "You are not authorized to modify this value. ";
   65:                 content += "\r\n";
   66:             }
   67:         }
   68:  
   69:         /////////////////////////////////////////////////////////////////////////////////
   70:  
   71:         /// <summary>
   72:         ///
   73:         /// </summary>
   74:         public static void TnmdListForTelegramBotApi(Ia.Ftn.Cl.Models.Business.Administration.Framework framework, string opcode, out string subject, out string content)
   75:         {
   76:             string inputType, horizontalRule;
   77:             StringBuilder contentStringBuilder;
   78:             DateTime now;
   79:  
   80:             inputType = string.Empty;
   81:             horizontalRule = " ";
   82:  
   83:             now = DateTime.UtcNow.AddHours(3);
   84:  
   85:             // subject can't have \r\n
   86:             subject = string.Empty; // "Fixed Telecommunications Network's Operations Support System (FTN OSS) TNMD list: ";
   87:  
   88:             //if (Ia.Ftn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteAccessList(Ia.Ftn.Cl.Model.Business.Authority.PersistentStorageFunction.Create, staffContact))
   89:             //{
   90:             opcode = opcode.ToLower();
   91:  
   92:             FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(framework, opcode, string.Empty, inputType, horizontalRule, out contentStringBuilder);
   93:  
   94:             contentStringBuilder.AppendLine(horizontalRule);
   95:             contentStringBuilder.AppendLine(Ia.Ftn.Cl.Models.Data.Help.Text(Ia.Ftn.Cl.Models.Data.Help.TelegramString.NeedHelpSendCommandSlashHelp));
   96:             contentStringBuilder.AppendLine(horizontalRule);
   97:             contentStringBuilder.AppendLine();
   98:  
   99:             content = contentStringBuilder.ToString();
  100:             //}
  101:             //else
  102:             //{
  103:             //    responseContent += "\r\n";
  104:             //    responseContent += "You are not authorized to modify this value. ";
  105:             //    responseContent += "\r\n";
  106:             //}
  107:         }
  108:  
  109:         /////////////////////////////////////////////////////////////////////////////////
  110:  
  111:         /// <summary>
  112:         ///
  113:         /// </summary>
  114:         public static void FieldListForTelegramBotApi(Ia.Ftn.Cl.Models.Business.Administration.Framework framework, string opcode, string operand, out string subject, out string content)
  115:         {
  116:             string inputType, horizontalRule;
  117:             StringBuilder contentStringBuilder;
  118:             DateTime now;
  119:  
  120:             inputType = string.Empty;
  121:             horizontalRule = " ";
  122:  
  123:             now = DateTime.UtcNow.AddHours(3);
  124:  
  125:             // subject can't have \r\n
  126:             subject = string.Empty; // "Fixed Telecommunications Network's Operations Support System (FTN OSS) Field list: ";
  127:  
  128:             //if (Ia.Ftn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteAccessList(Ia.Ftn.Cl.Model.Business.Authority.PersistentStorageFunction.Create, staffContact))
  129:             //{
  130:             opcode = opcode.ToLower();
  131:             operand = operand.ToLower();
  132:  
  133:             FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(framework, opcode, operand, inputType, horizontalRule, out contentStringBuilder);
  134:  
  135:             contentStringBuilder.AppendLine(horizontalRule);
  136:             contentStringBuilder.AppendLine(Ia.Ftn.Cl.Models.Data.Help.Text(Ia.Ftn.Cl.Models.Data.Help.TelegramString.NeedHelpSendCommandSlashHelp));
  137:             contentStringBuilder.AppendLine(horizontalRule);
  138:             contentStringBuilder.AppendLine();
  139:  
  140:             content = contentStringBuilder.ToString();
  141:             //}
  142:             //else
  143:             //{
  144:             //    responseContent += "\r\n";
  145:             //    responseContent += "You are not authorized to modify this value. ";
  146:             //    responseContent += "\r\n";
  147:             //}
  148:         }
  149:  
  150:         /////////////////////////////////////////////////////////////////////////////////
  151:  
  152:         /// <summary>
  153:         ///
  154:         /// </summary>
  155:         public static void ReportForTelegramBotApi(Ia.Ftn.Cl.Models.Business.Administration.Framework framework, string opcode, string operand, out string subject, out string content)
  156:         {
  157:             string inputType, horizontalRule;
  158:             StringBuilder contentStringBuilder;
  159:             DateTime now;
  160:  
  161:             inputType = string.Empty;
  162:             horizontalRule = " ";
  163:  
  164:             now = DateTime.UtcNow.AddHours(3);
  165:  
  166:             // subject can't have \r\n
  167:             subject = string.Empty; // "Fixed Telecommunications Network's Operations Support System (FTN OSS) Field list: ";
  168:  
  169:             //if (Ia.Ftn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteAccessList(Ia.Ftn.Cl.Model.Business.Authority.PersistentStorageFunction.Create, staffContact))
  170:             //{
  171:             opcode = opcode.ToLower();
  172:             operand = operand.ToLower();
  173:  
  174:             ReportForTelegramBotApiAndMailSimpleText(framework, opcode, operand, inputType, horizontalRule, out contentStringBuilder);
  175:  
  176:             contentStringBuilder.AppendLine(horizontalRule);
  177:             contentStringBuilder.AppendLine(Ia.Ftn.Cl.Models.Data.Help.Text(Ia.Ftn.Cl.Models.Data.Help.TelegramString.NeedHelpSendCommandSlashHelp));
  178:             contentStringBuilder.AppendLine(horizontalRule);
  179:             contentStringBuilder.AppendLine();
  180:  
  181:             content = contentStringBuilder.ToString();
  182:             //}
  183:             //else
  184:             //{
  185:             //    responseContent += "\r\n";
  186:             //    responseContent += "You are not authorized to modify this value. ";
  187:             //    responseContent += "\r\n";
  188:             //}
  189:         }
  190:  
  191:         /////////////////////////////////////////////////////////////////////////////////
  192:  
  193:         /// <summary>
  194:         ///
  195:         /// </summary>
  196:         public static void NokiaListForTelegramBotApi(Ia.Ftn.Cl.Models.Business.Administration.Framework framework, string opcode, out string subject, out string content)
  197:         {
  198:             string inputType, horizontalRule;
  199:             StringBuilder contentStringBuilder;
  200:             DateTime now;
  201:  
  202:             inputType = string.Empty;
  203:             horizontalRule = " ";
  204:  
  205:             now = DateTime.UtcNow.AddHours(3);
  206:  
  207:             // subject can't have \r\n
  208:             subject = string.Empty; // "Fixed Telecommunications Network's Operations Support System (FTN OSS) TNMD list: ";
  209:  
  210:             //if (Ia.Ftn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteAccessList(Ia.Ftn.Cl.Model.Business.Authority.PersistentStorageFunction.Create, staffContact))
  211:             //{
  212:             opcode = opcode.ToLower();
  213:  
  214:             FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(framework, opcode, string.Empty, inputType, horizontalRule, out contentStringBuilder);
  215:  
  216:             contentStringBuilder.AppendLine(horizontalRule);
  217:             contentStringBuilder.AppendLine(Ia.Ftn.Cl.Models.Data.Help.Text(Ia.Ftn.Cl.Models.Data.Help.TelegramString.NeedHelpSendCommandSlashHelp));
  218:             contentStringBuilder.AppendLine(horizontalRule);
  219:             contentStringBuilder.AppendLine();
  220:  
  221:             content = contentStringBuilder.ToString();
  222:             //}
  223:             //else
  224:             //{
  225:             //    responseContent += "\r\n";
  226:             //    responseContent += "You are not authorized to modify this value. ";
  227:             //    responseContent += "\r\n";
  228:             //}
  229:         }
  230:  
  231:         /////////////////////////////////////////////////////////////////////////////////
  232:  
  233:         /// <summary>
  234:         ///
  235:         /// </summary>
  236:         public static void HuaweiListForTelegramBotApi(Ia.Ftn.Cl.Models.Business.Administration.Framework framework, string opcode, out string subject, out string content)
  237:         {
  238:             string inputType, horizontalRule;
  239:             StringBuilder contentStringBuilder;
  240:             DateTime now;
  241:  
  242:             inputType = string.Empty;
  243:             horizontalRule = " ";
  244:  
  245:             now = DateTime.UtcNow.AddHours(3);
  246:  
  247:             // subject can't have \r\n
  248:             subject = string.Empty; // "Fixed Telecommunications Network's Operations Support System (FTN OSS) TNMD list: ";
  249:  
  250:             //if (Ia.Ftn.Cl.Model.Business.Authority.StaffContactCanCreateReadUpdateDeleteAccessList(Ia.Ftn.Cl.Model.Business.Authority.PersistentStorageFunction.Create, staffContact))
  251:             //{
  252:             opcode = opcode.ToLower();
  253:  
  254:             FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(framework, opcode, string.Empty, inputType, horizontalRule, out contentStringBuilder);
  255:  
  256:             contentStringBuilder.AppendLine(horizontalRule);
  257:             contentStringBuilder.AppendLine(Ia.Ftn.Cl.Models.Data.Help.Text(Ia.Ftn.Cl.Models.Data.Help.TelegramString.NeedHelpSendCommandSlashHelp));
  258:             contentStringBuilder.AppendLine(horizontalRule);
  259:             contentStringBuilder.AppendLine();
  260:  
  261:             content = contentStringBuilder.ToString();
  262:             //}
  263:             //else
  264:             //{
  265:             //    responseContent += "\r\n";
  266:             //    responseContent += "You are not authorized to modify this value. ";
  267:             //    responseContent += "\r\n";
  268:             //}
  269:         }
  270:  
  271:         /////////////////////////////////////////////////////////////////////////////////
  272:  
  273:         /// <summary>
  274:         ///
  275:         /// </summary>
  276:         public static void NetworkDesignDocumentForTelegramBotApi(out string subject, out string content)
  277:         {
  278:             string horizontalRule;
  279:             StringBuilder contentStringBuilder;
  280:             DateTime now;
  281:  
  282:             horizontalRule = " ";
  283:             now = DateTime.UtcNow.AddHours(3);
  284:  
  285:             // subject can't have \r\n
  286:             subject = "Network Design Document (" + now.ToString("yyyy-MM-dd HH:mm") + ")";
  287:  
  288:             contentStringBuilder = new StringBuilder();
  289:  
  290:             contentStringBuilder.AppendLine(Ia.Ftn.Cl.Models.Ui.NetworkDesignDocument.StructureToSimpleTextString());
  291:             contentStringBuilder.AppendLine(horizontalRule);
  292:             contentStringBuilder.AppendLine();
  293:  
  294:             contentStringBuilder.AppendLine(horizontalRule);
  295:             contentStringBuilder.AppendLine(Ia.Ftn.Cl.Models.Data.Help.Text(Ia.Ftn.Cl.Models.Data.Help.TelegramString.NeedHelpSendCommandSlashHelp));
  296:             contentStringBuilder.AppendLine(horizontalRule);
  297:             contentStringBuilder.AppendLine();
  298:  
  299:             contentStringBuilder = contentStringBuilder.Replace(Environment.NewLine + horizontalRule, horizontalRule);
  300:  
  301:             content = contentStringBuilder.ToString();
  302:         }
  303:  
  304:         /////////////////////////////////////////////////////////////////////////////////
  305:  
  306:         /// <summary>
  307:         ///
  308:         /// </summary>
  309:         public static void ServiceRequestFromTodayForTelegramBotApi(out string subject, out string content)
  310:         {
  311:             string horizontalRule;
  312:             StringBuilder contentStringBuilder;
  313:             DateTime now;
  314:  
  315:             horizontalRule = " ";
  316:  
  317:             contentStringBuilder = new StringBuilder();
  318:  
  319:             now = DateTime.UtcNow.AddHours(3);
  320:  
  321:             // subject can't have \r\n
  322:             subject = "Service Requests from Today (" + now.ToString("yyyy-MM-dd HH:mm") + ")";
  323:  
  324:             var serviceRequestList = Ia.Ftn.Cl.Models.Data.ServiceRequest.ForRequestDate(now).OrderBy(u => u.Id).ToList();
  325:  
  326:             if (serviceRequestList.Count > 0)
  327:             {
  328:                 if (serviceRequestList != null && serviceRequestList.Count > 0)
  329:                 {
  330:                     foreach (var sr in serviceRequestList) contentStringBuilder.AppendLine(sr.ToSimpleTextString());
  331:                     contentStringBuilder.AppendLine(horizontalRule);
  332:                     contentStringBuilder.AppendLine();
  333:                 }
  334:             }
  335:             else
  336:             {
  337:                 contentStringBuilder.AppendLine(horizontalRule);
  338:                 contentStringBuilder.AppendLine("No results. ");
  339:                 contentStringBuilder.AppendLine();
  340:             }
  341:  
  342:             contentStringBuilder.AppendLine(horizontalRule);
  343:             contentStringBuilder.AppendLine(Ia.Ftn.Cl.Models.Data.Help.Text(Ia.Ftn.Cl.Models.Data.Help.TelegramString.NeedHelpSendCommandSlashHelp));
  344:             contentStringBuilder.AppendLine(horizontalRule);
  345:             contentStringBuilder.AppendLine();
  346:  
  347:             contentStringBuilder = contentStringBuilder.Replace(Environment.NewLine + horizontalRule, horizontalRule);
  348:  
  349:             content = contentStringBuilder.ToString();
  350:         }
  351:  
  352:         ////////////////////////////////////////////////////////////////////////////
  353:  
  354:         /// <summary>
  355:         ///
  356:         /// </summary>
  357:         public static void FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(Ia.Ftn.Cl.Models.Business.Administration.Framework framework, string opcode, string operand, string inputType, string horizontalRule, out StringBuilder contentStringBuilder)
  358:         {
  359:             List<int> siteIdList;
  360:             StringBuilder stringBuilder;
  361:             DateTime now;
  362:  
  363:             stringBuilder = new StringBuilder();
  364:             now = DateTime.UtcNow.AddHours(3);
  365:  
  366:             //stringBuilder.AppendLine("Fixed Telecommunications Network's Operations Support System (FTN OSS) Find Result: " + now.ToString("yyyy-MM-dd HH:mm"));
  367:  
  368:             //stringBuilder.AppendLine(@"Opcode: """ + opcode + @""".");
  369:             //responseContent += @"Operand: """ + operand + @"""." + "\r\n";
  370:             //stringBuilder.AppendLine();
  371:  
  372:             if (opcode.Contains("division"))
  373:             {
  374:                 if (!string.IsNullOrEmpty(operand))
  375:                 {
  376:                     // get the siteId from the site name in operand
  377:                     siteIdList = (from s in Ia.Ftn.Cl.Models.Data.NetworkDesignDocument.SiteList where s.Name.ToLower() == operand select s.Id).ToList();
  378:  
  379:                     if (framework == null || framework != null && framework.Sites.Count > 0 && framework.Sites.Any(u => siteIdList.Contains(u.Id)))
  380:                     {
  381:                         _FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(Ia.Ftn.Cl.Models.Business.Administration.Framework.CustomerServiceSectorSectionDivisionFrameworkAndStaffIdList(), siteIdList, "Field List:", horizontalRule, ref stringBuilder);
  382:                     }
  383:                     else
  384:                     {
  385:                         stringBuilder.AppendLine(horizontalRule);
  386:                         stringBuilder.AppendLine(Ia.Ftn.Cl.Models.Data.Help.Text(Ia.Ftn.Cl.Models.Data.Help.TelegramString.FrameworkNotAuthorized));
  387:                     }
  388:  
  389:                     stringBuilder.AppendLine(horizontalRule);
  390:                 }
  391:                 else
  392:                 {
  393:                     siteIdList = (framework != null && framework.Sites.Count > 0) ? framework.Sites.Select(u => u.Id).ToList() : new List<int>();
  394:  
  395:                     _FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(Ia.Ftn.Cl.Models.Business.Administration.Framework.CustomerServiceSectorSectionDivisionFrameworkAndStaffIdList(), siteIdList, "Field List:", horizontalRule, ref stringBuilder);
  396:                 }
  397:             }
  398:             else if (opcode.Contains("tnmd000")) // dummy
  399:             {
  400:                 siteIdList = (framework != null && framework.Sites.Count > 0) ? framework.Sites.Select(u => u.Id).ToList() : new List<int>();
  401:  
  402:                 _FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(Ia.Ftn.Cl.Models.Business.Administration.Framework.TelephoneNetworkMaintenanceDepartmentFrameworkAndStaffIdList(), siteIdList, "TNMD List:", horizontalRule, ref stringBuilder);
  403:             }
  404:             else if (opcode.Contains("nokia"))
  405:             {
  406:                 siteIdList = (framework != null && framework.Sites.Count > 0) ? framework.Sites.Select(u => u.Id).ToList() : new List<int>();
  407:  
  408:                 _FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(Ia.Ftn.Cl.Models.Business.Administration.Framework.NokiaFrameworkAndStaffdList(), siteIdList, "Nokia List:", horizontalRule, ref stringBuilder);
  409:             }
  410:             else if (opcode.Contains("huawei"))
  411:             {
  412:                 siteIdList = (framework != null && framework.Sites.Count > 0) ? framework.Sites.Select(u => u.Id).ToList() : new List<int>();
  413:  
  414:                 _FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(Ia.Ftn.Cl.Models.Business.Administration.Framework.HuaweiFrameworkAndStaffIdList(), siteIdList, "Huawei List:", horizontalRule, ref stringBuilder);
  415:             }
  416:             else
  417:             {
  418:                 stringBuilder.AppendLine(horizontalRule);
  419:                 stringBuilder.AppendLine("Error: opcode: [" + opcode + "] is unrecognized. ");
  420:                 stringBuilder.AppendLine(horizontalRule);
  421:             }
  422:  
  423:             contentStringBuilder = stringBuilder.Replace(Environment.NewLine + horizontalRule, horizontalRule);
  424:         }
  425:  
  426:         ////////////////////////////////////////////////////////////////////////////
  427:  
  428:         /// <summary>
  429:         ///
  430:         /// </summary>
  431:         private static void _FieldTnmdSupplierListForTelegramBotApiAndMailSimpleText(List<string> frameworkAndStaffIdList, List<int> siteIdList, string caption, string horizontalRule, ref StringBuilder stringBuilder)
  432:         {
  433:             string text;
  434:  
  435:             reportAccessServiceRequestList = Ia.Ftn.Cl.Models.Ui.Report.ReportWithReportOpenStatusByUserIdListAndFrameworkIdList(frameworkAndStaffIdList, new List<string>());// siteIdList);
  436:  
  437:             stringBuilder.AppendLine(horizontalRule);
  438:             stringBuilder.AppendLine(caption);
  439:             stringBuilder.AppendLine();
  440:  
  441:             if (reportAccessServiceRequestList != null && reportAccessServiceRequestList.Count > 0)
  442:             {
  443:                 foreach (var rasr in reportAccessServiceRequestList)
  444:                 {
  445:                     text = rasr.ToSimpleTextString();
  446:                     text = text.Replace("{report}", "/report_");
  447:  
  448:                     stringBuilder.AppendLine(text);
  449:                 }
  450:  
  451:             }
  452:             else stringBuilder.AppendLine("No records were found. ");
  453:  
  454:             stringBuilder.AppendLine(horizontalRule);
  455:         }
  456:  
  457:         ////////////////////////////////////////////////////////////////////////////
  458:  
  459:         /// <summary>
  460:         ///
  461:         /// </summary>
  462:         public static void ReportForTelegramBotApiAndMailSimpleText(Ia.Ftn.Cl.Models.Business.Administration.Framework framework, string opcode, string operand, string inputType, string horizontalRule, out StringBuilder contentStringBuilder)
  463:         {
  464:             StringBuilder stringBuilder;
  465:             DateTime now;
  466:  
  467:             stringBuilder = new StringBuilder();
  468:             now = DateTime.UtcNow.AddHours(3);
  469:  
  470:             if (opcode.Contains("report"))
  471:             {
  472:                 if (!string.IsNullOrEmpty(operand))
  473:                 {
  474:                     if (framework == null || framework != null && framework.Sites.Count > 0)
  475:                     {
  476:                         _ReportForTelegramBotApiAndMailSimpleText(Ia.Ftn.Cl.Models.Business.Administration.Framework.CustomerServiceSectorSectionDivisionFrameworkAndStaffIdList(), "Report:", horizontalRule, ref stringBuilder);
  477:                     }
  478:                     else
  479:                     {
  480:                         stringBuilder.AppendLine(horizontalRule);
  481:                         stringBuilder.AppendLine(Ia.Ftn.Cl.Models.Data.Help.Text(Ia.Ftn.Cl.Models.Data.Help.TelegramString.FrameworkNotAuthorized));
  482:                     }
  483:  
  484:                     stringBuilder.AppendLine(horizontalRule);
  485:                 }
  486:                 else
  487:                 {
  488:                     stringBuilder.AppendLine(horizontalRule);
  489:                     stringBuilder.AppendLine("Error: operand: is null. ");
  490:                     stringBuilder.AppendLine(horizontalRule);
  491:                 }
  492:             }
  493:             else
  494:             {
  495:                 stringBuilder.AppendLine(horizontalRule);
  496:                 stringBuilder.AppendLine("Error: opcode: [" + opcode + "] is unrecognized. ");
  497:                 stringBuilder.AppendLine(horizontalRule);
  498:             }
  499:  
  500:             contentStringBuilder = stringBuilder.Replace(Environment.NewLine + horizontalRule, horizontalRule);
  501:         }
  502:  
  503:         ////////////////////////////////////////////////////////////////////////////
  504:  
  505:         /// <summary>
  506:         ///
  507:         /// </summary>
  508:         private static void _ReportForTelegramBotApiAndMailSimpleText(List<string> frameworkAndStaffIdList, string caption, string horizontalRule, ref StringBuilder stringBuilder)
  509:         {
  510:             string text;
  511:  
  512:             stringBuilder.AppendLine(horizontalRule);
  513:             stringBuilder.AppendLine(caption);
  514:             stringBuilder.AppendLine();
  515:  
  516:             text = "Hi";
  517:  
  518:             stringBuilder.AppendLine(text);
  519:  
  520:             stringBuilder.AppendLine(horizontalRule);
  521:         }
  522:  
  523:         ////////////////////////////////////////////////////////////////////////////
  524:         ////////////////////////////////////////////////////////////////////////////    
  525:     }
  526:  
  527:     ////////////////////////////////////////////////////////////////////////////
  528:     ////////////////////////////////////////////////////////////////////////////   
  529: }