// Path: androidsdk/src/main/java/com/wootric/androidsdk/utils/Utils.java
// public final class Utils {
// 
//     private Utils(){}
// 
//     public static <T> T checkNotNull(T object, String objectDescription) {
//         if(object == null) {
//             throw new IllegalArgumentException(objectDescription + " must not be null");
//         }
// 
//         return object;
//     }
// 
//     public static boolean isNotEmpty(String s) {
//         return s != null && !s.isEmpty() && !isWhitespaceString(s);
//     }
// 
//     public static boolean isBlank(String s) {
//         return s == null || (s != null && (s.isEmpty() || isWhitespaceString(s)));
//     }
// 
//     private static boolean isWhitespaceString(String s) {
//         return s.trim().length() == 0;
//     }
// 
//     public static void checkDate(long date) {
//         if (date > 9999999999L) {
//             Log.d(Constants.TAG, "WARNING: The created date exceeds the maximum 10 characters allowed. " +
//                     "If you are using System.currentTimeMillis() divide it by 1000.");
//         } else {
//             Date d = new Date(date * 1000L);
//             Date now = new Date();
//             if (d.after(now)){
//                 Log.d(Constants.TAG, "WARNING: The created date is on the future");
//             }
//         }
//     }
// 
//     public static byte getByteValue(Boolean bool) {
//         if (bool != null) {
//             return bool ? (byte) 1 : (byte) 0;
//         } else {
//             return (byte) 0;
//         }
//     }
// 
//     public static boolean startsWithEU(String aString) {
//         return aString.startsWith("NPS-EU");
//     }
// }


import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import com.wootric.androidsdk.utils.Utils;
import org.json.JSONException;
import org.json.JSONObject;
/*
 * Copyright (c) 2016 Wootric (https://wootric.com)
 *
 * 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.
 */

package com.wootric.androidsdk.objects;




/**
 * Created by maciejwitowski on 9/23/15.
 */
public class WootricCustomThankYou implements Parcelable {
    private String finalThankYou;
    private String detractorFinalThankYou;
    private String passiveFinalThankYou;
    private String promoterFinalThankYou;

    private String text;
    private String detractorText;
    private String passiveText;
    private String promoterText;

    private String linkText;
    private String detractorLinkText;
    private String passiveLinkText;
    private String promoterLinkText;

    private Uri linkUri;
    private Uri detractorLinkUri;
    private Uri passiveLinkUri;
    private Uri promoterLinkUri;

    private Boolean emailInUrl;
    private Boolean detractorEmailInUrl;
    private Boolean passiveEmailInUrl;
    private Boolean promoterEmailInUrl;
    private Boolean scoreInUrl;
    private Boolean detractorScoreInUrl;
    private Boolean passiveScoreInUrl;
// Path: androidsdk/src/main/java/com/wootric/androidsdk/utils/Utils.java
// public final class Utils {
// 
//     private Utils(){}
// 
//     public static <T> T checkNotNull(T object, String objectDescription) {
//         if(object == null) {
//             throw new IllegalArgumentException(objectDescription + " must not be null");
//         }
// 
//         return object;
//     }
// 
//     public static boolean isNotEmpty(String s) {
//         return s != null && !s.isEmpty() && !isWhitespaceString(s);
//     }
// 
//     public static boolean isBlank(String s) {
//         return s == null || (s != null && (s.isEmpty() || isWhitespaceString(s)));
//     }
// 
//     private static boolean isWhitespaceString(String s) {
//         return s.trim().length() == 0;
//     }
// 
//     public static void checkDate(long date) {
//         if (date > 9999999999L) {
//             Log.d(Constants.TAG, "WARNING: The created date exceeds the maximum 10 characters allowed. " +
//                     "If you are using System.currentTimeMillis() divide it by 1000.");
//         } else {
//             Date d = new Date(date * 1000L);
//             Date now = new Date();
//             if (d.after(now)){
//                 Log.d(Constants.TAG, "WARNING: The created date is on the future");
//             }
//         }
//     }
// 
//     public static byte getByteValue(Boolean bool) {
//         if (bool != null) {
//             return bool ? (byte) 1 : (byte) 0;
//         } else {
//             return (byte) 0;
//         }
//     }
// 
//     public static boolean startsWithEU(String aString) {
//         return aString.startsWith("NPS-EU");
//     }
// }


// Path: androidsdk/src/main/java/com/wootric/androidsdk/objects/WootricCustomThankYou.java
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import com.wootric.androidsdk.utils.Utils;
import org.json.JSONException;
import org.json.JSONObject;

/*
 * Copyright (c) 2016 Wootric (https://wootric.com)
 *
 * 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.
 */

package com.wootric.androidsdk.objects;




/**
 * Created by maciejwitowski on 9/23/15.
 */
public class WootricCustomThankYou implements Parcelable {
    private String finalThankYou;
    private String detractorFinalThankYou;
    private String passiveFinalThankYou;
    private String promoterFinalThankYou;

    private String text;
    private String detractorText;
    private String passiveText;
    private String promoterText;

    private String linkText;
    private String detractorLinkText;
    private String passiveLinkText;
    private String promoterLinkText;

    private Uri linkUri;
    private Uri detractorLinkUri;
    private Uri passiveLinkUri;
    private Uri promoterLinkUri;

    private Boolean emailInUrl;
    private Boolean detractorEmailInUrl;
    private Boolean passiveEmailInUrl;
    private Boolean promoterEmailInUrl;
    private Boolean scoreInUrl;
    private Boolean detractorScoreInUrl;
    private Boolean passiveScoreInUrl;
    private Boolean promoterScoreInUrl;