package io.branch.referral.util;

/**
 * Created by sojanpr on 7/7/17.
 * Enumerations for BranchContentSchema. This enumearates all content schemas supported by Branch
 */
public enum BranchContentSchema {
    COMMERCE_PRODUCT("COMMERCE_PRODUCT");
    private String schemaName;

    BranchContentSchema(String schemaName) {
        this.schemaName = schemaName;
    }

    public String getName() {
        return schemaName;
    }

    public static BranchContentSchema getByName(String name) {
        BranchContentSchema contentSchemaResult = COMMERCE_PRODUCT;
        for (BranchContentSchema contentSchema : BranchContentSchema.values()) {
            if (contentSchema.schemaName.equalsIgnoreCase(name)) {
                contentSchemaResult = contentSchema;
                break;
            }
        }
        return contentSchemaResult;
    }
}

@@ -240,16 +240,924 @@
 RODUCT%22)
+,%0A    TEXT_ARTICLE(%22TEXT_ARTICLE%22),%0A    TEXT_BLOG(%22TEXT_BLOG%22),%0A    MEDIA_IMAGE(%22MEDIA_IMAGE%22),%0A    MEDIA_MUSIC(%22MEDIA_MUSIC%22),%0A    MEDIA_VIDEO(%22MEDIA_VIDEO%22),%0A    COMMERCE_AUCTION(%22COMMERCE_AUCTION%22),%0A    COMMERCE_BUSINESS(%22COMMERCE_BUSINESS%22),%0A    COMMERCE_RESTAURANT(%22COMMERCE_RESTAURANT%22),%0A    COMMERCE_SERVICE(%22COMMERCE_SERVICE%22),%0A    COMMERCE_TRAVEL_HOTEL(%22COMMERCE_TRAVEL_HOTEL%22),%0A    COMMERCE_TRAVEL_FLIGHT(%22COMMERCE_TRAVEL_FLIGHT%22),%0A    COMMERCE_TRAVEL_OTHER(%22COMMERCE_TRAVEL_OTHER%22),%0A    TEXT_RECIPE(%22TEXT_RECIPE%22),%0A    OTHER_GAME_STATE(%22OTHER_GAME_STATE%22),%0A    OTHER_ACTION(%22OTHER_ACTION%22),%0A    MEDIA_MIXED(%22MEDIA_MIXED%22),%0A    TEXT_STORY(%22TEXT_STORY%22),%0A    TEXT_TECHNICAL_DOC(%22TEXT_TECHNICAL_DOC%22),%0A    TEXT_REVIEW(%22TEXT_REVIEW%22),%0A    TEXT_SEARCH_RESULTS(%22TEXT_SEARCH_RESULTS%22),%0A    COMMERCE_OTHER(%22COMMERCE_OTHER%22),%0A    TEXT_OTHER(%22TEXT_OTHER%22),%0A    MEDIA_OTHER(%22MEDIA_OTHER%22),%0A    OTHER(%22OTHER%22)
 ;%0A    pr

Complete Content Schema Enumerations