Example #1
0
        /// <summary>
        /// Copy constructor.<br>
        /// Initializes the components list with a deep copy of the source components list. </summary>
        /// <param name="source"> a field instance to copy
        /// @since 7.7 </param>
        public static Field134 newInstance(Field134 source)
        {
            Field134 cp = new Field134();

            cp.Components = new List <>(source.Components);
            return(cp);
        }
Example #2
0
        public static Field134 fromJson(string json)
        {
            Field134   field      = new Field134();
            JsonParser parser     = new JsonParser();
            JsonObject jsonObject = (JsonObject)parser.parse(json);

            if (jsonObject.get("bIC") != null)
            {
                field.setComponent1(jsonObject.get("bIC").AsString);
            }
            if (jsonObject.get("broadcastRequesterName") != null)
            {
                field.Component2 = jsonObject.get("broadcastRequesterName").AsString;
            }
            if (jsonObject.get("broadcastRequesterCity") != null)
            {
                field.Component3 = jsonObject.get("broadcastRequesterCity").AsString;
            }
            return(field);
        }
Example #3
0
        public virtual IList <string> getLinesBetween(int start, int end, int offset)
        {
            Field134 cp = newInstance(this);

            return(SwiftParseUtils.getLines(getLine(cp, start, end, offset)));
        }
Example #4
0
        public virtual IList <string> getLines(int offset)
        {
            Field134 cp = newInstance(this);

            return(SwiftParseUtils.getLines(getLine(cp, null, null, offset)));
        }
Example #5
0
        public virtual string getLine(int line, int offset)
        {
            Field134 cp = newInstance(this);

            return(getLine(cp, line, null, offset));
        }