示例#1
0
        protected override void GetParametersLocked(Parameters Parameters, Language UserLanguage, bool IncludeJoins)
        {
            base.GetParametersLocked(Parameters, UserLanguage, IncludeJoins);

            bool InProduction = this.Phase >= LifecyclePhase.Production;

            if (UserLanguage == null)
            {
                Parameters.AddStringParameter("resource", "Communication", "Communication",
                                              "Resource Name:",
                                              "Local resource name of content.",
                                              !InProduction, null, this.resource);

                Parameters.AddStringParameter("query", "Communication", "Communication",
                                              "Query String:",
                                              "Optional query string used in the request for data.",
                                              !InProduction, string.Empty, this.query);
            }
            else
            {
                LanguageModule Module   = UserLanguage.GetModule(LanguageModuleName);
                string         Category = Module.String(26, "Communication");

                Parameters.AddStringParameter("resource", "Communication", Category,
                                              Module.String(7, "Resource Name:"),
                                              Module.String(8, "Local resource name of content."),
                                              !InProduction, null, this.resource);

                Parameters.AddStringParameter("query", "Communication", Category,
                                              Module.String(53, "Query String:"),
                                              Module.String(54, "Optional query string used in the request for data."),
                                              !InProduction, string.Empty, this.query);
            }
        }
示例#2
0
        protected override void GetParametersLocked(Parameters Parameters, Language UserLanguage, bool IncludeJoins)
        {
            base.GetParametersLocked(Parameters, UserLanguage, IncludeJoins);

            bool InProduction = this.Phase >= LifecyclePhase.Production;

            if (UserLanguage == null)
            {
                Parameters.AddStringParameter("folder", "Communication", "Communication",
                                              "Folder:",
                                              "CoAP folder",
                                              !InProduction, null, this.folder);

                /*Parameters.AddBooleanParameter("composite", "Communication", "Communication",
                 *  "Composite folder",
                 *  "If checked, the current folder consists of data of its child nodes.",
                 *  !InProduction, false, this.composite);*/
            }
            else
            {
                LanguageModule Module   = UserLanguage.GetModule(LanguageModuleName);
                string         Category = Module.String(26, "Communication");

                Parameters.AddStringParameter("folder", "Communication", Category,
                                              Module.String(3, "Folder:"),
                                              Module.String(4, "CoAP folder"),
                                              !InProduction, null, this.folder);

                /*Parameters.AddBooleanParameter("composite", "Communication", Category,
                 *  Module.String(5, "Composite folder"),
                 *  Module.String(6, "If checked, the current folder consists of data of its child nodes."),
                 *  !InProduction, false, this.composite);*/
            }
        }
        protected override void GetParametersLocked(Parameters Parameters, Language UserLanguage, bool IncludeJoins)
        {
            base.GetParametersLocked(Parameters, UserLanguage, IncludeJoins);

            bool InProduction = this.Phase >= LifecyclePhase.Production;

            if (UserLanguage == null)
            {
                Parameters.AddStringParameter("fieldName", "Communication", "Communication",
                                              "Field Name:",
                                              "Field name to use when reporting content.",
                                              !InProduction, null, this.fieldName);
            }
            else
            {
                LanguageModule Module   = UserLanguage.GetModule(LanguageModuleName);
                string         Category = Module.String(2, "Communication");

                Parameters.AddStringParameter("fieldName", "Communication", Category,
                                              Module.String(29, "Field Name:"),
                                              Module.String(30, "Field name to use when reporting content."),
                                              !InProduction, null, this.fieldName);
            }
        }
        protected override void GetParametersLocked(Parameters Parameters, Language UserLanguage, bool IncludeJoins)
        {
            base.GetParametersLocked(Parameters, UserLanguage, IncludeJoins);

            bool InProduction = this.Phase >= LifecyclePhase.Production;

            if (UserLanguage == null)
            {
                Parameters.AddInt32Parameter("port", "Communication", "Communication",
                                             "CoAP Port:",
                                             "Port to use on the local machine for incoming CoAP messages.",
                                             !InProduction, null, this.port, 1, 65535);

                Parameters.AddInt32Parameter("ttl", "Communication", "Communication",
                                             "Time to live (TTL):",
                                             "Number of router hops to allow, before messages are discarded.",
                                             !InProduction, null, this.ttl, 1, 255);

                Parameters.AddIdReferenceParameter("userId", "Communication", "Communication",
                                                   "User ID:",
                                                   "Access to the server will be made using the access rights of this user account.",
                                                   !InProduction, string.Empty, this.userId, Users.Source, typeof(User), false);
            }
            else
            {
                LanguageModule Module   = UserLanguage.GetModule(CoapNode.LanguageModuleName);
                string         Category = Module.String(26, "Communication");

                Parameters.AddInt32Parameter("port", "Communication", Category,
                                             Module.String(10, "CoAP Port:"),
                                             Module.String(11, "Port to use on the local machine for incoming CoAP messages."),
                                             !InProduction, null, this.port, 1, 65535);

                Parameters.AddInt32Parameter("ttl", "Communication", Category,
                                             Module.String(12, "Time to live (TTL):"),
                                             Module.String(13, "Number of router hops to allow, before messages are discarded."),
                                             !InProduction, null, this.ttl, 1, 255);

                Parameters.AddIdReferenceParameter("userId", "Communication", Category,
                                                   Module.String(55, "User ID:"),
                                                   Module.String(56, "Access to the server will be made using the access rights of this user account."),
                                                   !InProduction, string.Empty, this.userId, Users.Source, typeof(User), false);
            }
        }