2 * Copyright 2008 ZXing authors
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package com.google.zxing.client.result.optional;
19 import com.google.zxing.client.result.ParsedResult;
20 import com.google.zxing.client.result.ParsedResultType;
25 public final class NDEFSmartPosterParsedResult extends ParsedResult {
27 public static final int ACTION_UNSPECIFIED = -1;
28 public static final int ACTION_DO = 0;
29 public static final int ACTION_SAVE = 1;
30 public static final int ACTION_OPEN = 2;
32 private final String title;
33 private final String uri;
34 private final int action;
36 NDEFSmartPosterParsedResult(int action, String uri, String title) {
37 super(ParsedResultType.NDEF_SMART_POSTER);
43 public String getTitle() {
47 public String getURI() {
51 public int getAction() {
55 public String getDisplayResult() {
59 return title + '\n' + uri;