-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGenerateRequestWrapper.java
More file actions
105 lines (90 loc) · 4.33 KB
/
GenerateRequestWrapper.java
File metadata and controls
105 lines (90 loc) · 4.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Aspose" file="GenerateRequestWrapper.java">
// Copyright (c) 2026 Aspose.BarCode for Cloud
// </copyright>
// <summary>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
package com.aspose.barcode.cloud.requests;
import com.aspose.barcode.cloud.model.BarcodeImageFormat;
import com.aspose.barcode.cloud.model.CodeLocation;
import com.aspose.barcode.cloud.model.EncodeBarcodeType;
import com.aspose.barcode.cloud.model.EncodeDataType;
import com.aspose.barcode.cloud.model.GraphicsUnit;
/** Generate barcode using GET request with parameters in route and query string. */
public class GenerateRequestWrapper {
/** Type of barcode to generate.. */
public final EncodeBarcodeType barcodeType;
/** String represents data to encode. */
public final String data;
/** Type of data to encode. Default value: StringData.. */
public EncodeDataType dataType;
/** Barcode output image format. Default value: png. */
public BarcodeImageFormat imageFormat;
/**
* Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default
* value: Depends on BarcodeType. CodeLocation.Below for 1D Barcodes. CodeLocation.None for 2D
* Barcodes..
*/
public CodeLocation textLocation;
/**
* Specify the displaying bars and content Color. Value: Color name from
* https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #.
* For example: AliceBlue or #FF000000 Default value: Black..
*/
public String foregroundColor = "Black";
/**
* Background color of the barcode image. Value: Color name from
* https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #.
* For example: AliceBlue or #FF000000 Default value: White..
*/
public String backgroundColor = "White";
/** Common Units for all measuring in query. Default units: pixel.. */
public GraphicsUnit units;
/**
* Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi.
* Decimal separator is dot..
*/
public Float resolution;
/**
* Height of the barcode image in given units. Default units: pixel. Decimal separator is dot..
*/
public Float imageHeight;
/**
* Width of the barcode image in given units. Default units: pixel. Decimal separator is dot..
*/
public Float imageWidth;
/**
* BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle =
* 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the
* difficulty for the scanner to read the image. Default value: 0..
*/
public Integer rotationAngle;
/**
* Generate barcode using GET request with parameters in route and query string..
*
* @param barcodeType Type of barcode to generate.
* @param data String represents data to encode
*/
public GenerateRequestWrapper(EncodeBarcodeType barcodeType, String data) {
this.barcodeType = barcodeType;
this.data = data;
}
}