Prettify scan result screen, I think
[zxing.git] / csharp / ResultMetadataType.cs
index 5a37130..d57ae27 100755 (executable)
@@ -1,4 +1,6 @@
-/*\r
+/*\r
+* Copyright 2008 ZXing authors\r
+*\r
 * Licensed under the Apache License, Version 2.0 (the "License");\r
 * you may not use this file except in compliance with the License.\r
 * You may obtain a copy of the License at\r
 * See the License for the specific language governing permissions and\r
 * limitations under the License.\r
 */\r
-\r
 using System;\r
-using System.Collections;\r
-\r
 namespace com.google.zxing\r
 {\r
+       \r
+       /// <summary> Represents some type of metadata about the result of the decoding that the decoder\r
+       /// wishes to communicate back to the caller.\r
+       /// \r
+       /// </summary>\r
+       /// <author>  Sean Owen\r
+       /// </author>\r
+       /// <author>www.Redivivus.in (suraj.supekar@redivivus.in) - Ported from ZXING Java Source \r
+       /// </author>\r
 \r
-    /// <summary> The general exception class throw when something goes wrong during decoding of a barcode.\r
-    /// This includes, but is not limited to, failing checksums / error correction algorithms, being\r
-    /// unable to locate finder timing patterns, and so on.\r
-    /// \r
-    /// </summary>\r
-    /// <author>  srowen@google.com (Sean Owen)\r
-    /// </author>\r
-    //[Serializable]\r
-    public sealed class ResultMetadataType\r
-    {\r
-          // No, we can't use an enum here. J2ME doesn't support it.\r
-\r
-          /**\r
-           * Unspecified, application-specific metadata. Maps to an unspecified {@link Object}.\r
-           */\r
-          public static ResultMetadataType OTHER = new ResultMetadataType();\r
-\r
-          /**\r
-           * Denotes the likely approximate orientation of the barcode in the image. This value\r
-           * is given as degrees rotated clockwise from the normal, upright orientation.\r
-           * For example a 1D barcode which was found by reading top-to-bottom would be\r
-           * said to have orientation "90". This key maps to an {@link Integer} whose\r
-           * value is in the range [0,360).\r
-           */\r
-          public static ResultMetadataType ORIENTATION = new ResultMetadataType();\r
-\r
-          /**\r
-           * <p>2D barcode formats typically encode text, but allow for a sort of 'byte mode'\r
-           * which is sometimes used to encode binary data. While {@link Result} makes available\r
-           * the complete raw bytes in the barcode for these formats, it does not offer the bytes\r
-           * from the byte segments alone.</p>\r
-           *\r
-           * <p>This maps to a {@link java.util.Vector} of byte arrays corresponding to the\r
-           * raw bytes in the byte segments in the barcode, in order.</p>\r
-           */\r
-          public static ResultMetadataType BYTE_SEGMENTS = new ResultMetadataType();\r
-\r
-          private ResultMetadataType() {\r
-          }\r
-    \r
-    \r
-    }\r
+       public sealed class ResultMetadataType\r
+       {\r
+               \r
+               // No, we can't use an enum here. J2ME doesn't support it.\r
+               \r
+               /// <summary> Unspecified, application-specific metadata. Maps to an unspecified {@link Object}.</summary>\r
+               //UPGRADE_NOTE: Final was removed from the declaration of 'OTHER '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"\r
+               public static readonly ResultMetadataType OTHER = new ResultMetadataType();\r
+               \r
+               /// <summary> Denotes the likely approximate orientation of the barcode in the image. This value\r
+               /// is given as degrees rotated clockwise from the normal, upright orientation.\r
+               /// For example a 1D barcode which was found by reading top-to-bottom would be\r
+               /// said to have orientation "90". This key maps to an {@link Integer} whose\r
+               /// value is in the range [0,360).\r
+               /// </summary>\r
+               //UPGRADE_NOTE: Final was removed from the declaration of 'ORIENTATION '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"\r
+               public static readonly ResultMetadataType ORIENTATION = new ResultMetadataType();\r
+               \r
+               /// <summary> <p>2D barcode formats typically encode text, but allow for a sort of 'byte mode'\r
+               /// which is sometimes used to encode binary data. While {@link Result} makes available\r
+               /// the complete raw bytes in the barcode for these formats, it does not offer the bytes\r
+               /// from the byte segments alone.</p>\r
+               /// \r
+               /// <p>This maps to a {@link java.util.Vector} of byte arrays corresponding to the\r
+               /// raw bytes in the byte segments in the barcode, in order.</p>\r
+               /// </summary>\r
+               //UPGRADE_NOTE: Final was removed from the declaration of 'BYTE_SEGMENTS '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"\r
+               public static readonly ResultMetadataType BYTE_SEGMENTS = new ResultMetadataType();\r
+               \r
+               /// <summary> Error correction level used, if applicable. The value type depends on the\r
+               /// format, but is typically a String.\r
+               /// </summary>\r
+               //UPGRADE_NOTE: Final was removed from the declaration of 'ERROR_CORRECTION_LEVEL '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"\r
+               public static readonly ResultMetadataType ERROR_CORRECTION_LEVEL = new ResultMetadataType();\r
+               \r
+               private ResultMetadataType()\r
+               {\r
+               }\r
+       }\r
 }
\ No newline at end of file