Commit 9444c30c by Nathan Nainggolan

add all project

parent e52a4ca1
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<Objective-C-extensions>
<file>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Import" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Macro" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Typedef" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Enum" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Constant" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Global" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Struct" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="FunctionPredecl" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Function" />
</file>
<class>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Property" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Synthesize" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InitMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="StaticMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InstanceMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="DeallocMethod" />
</class>
<extensions>
<pair source="cpp" header="h" fileNamingConvention="NONE" />
<pair source="c" header="h" fileNamingConvention="NONE" />
</extensions>
</Objective-C-extensions>
</code_scheme>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="NullableNotNullManager">
<option name="myDefaultNullable" value="android.support.annotation.Nullable" />
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
<option name="myNullables">
<value>
<list size="5">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
<item index="2" class="java.lang.String" itemvalue="javax.annotation.CheckForNull" />
<item index="3" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
<item index="4" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
</list>
</value>
</option>
<option name="myNotNulls">
<value>
<list size="4">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
</list>
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/DiTenun.iml" filepath="$PROJECT_DIR$/DiTenun.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0'
}
}
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'android-apt'
apply plugin: 'com.jakewharton.butterknife'
apply plugin: 'realm-android'
android {
compileSdkVersion 24
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.lpdp.del.tenunapp"
minSdkVersion 23
targetSdkVersion 24
versionCode 1
versionName "v1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// setProperty("archivesBaseName", "Ditenun-$versionName-$minSdkVersion")
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 //lambda ftw
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}
def supportLibraryVersion = '24.2.1'
def daggerVersion = '1.2.2'
def okHttpVersion = '3.4.1'
def retrofit2Version = '2.1.0'
def butterKnifeVersion = '8.4.0'
def rxJavaVersion = '1.1.3'
def rxAndroidVersion = '1.1.0'
def gsonVersion = '2.7'
def iconifyVersion = '2.2.2'
def subSamplingImageLibVersion = '3.5.0'
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile "com.android.support:appcompat-v7:$supportLibraryVersion"
compile "com.android.support:design:$supportLibraryVersion"
compile "com.android.support:recyclerview-v7:$supportLibraryVersion"
compile "com.android.support:palette-v7:$supportLibraryVersion"
compile "com.android.support:cardview-v7:$supportLibraryVersion"
compile "com.squareup.retrofit2:retrofit:$retrofit2Version"
compile "com.squareup.retrofit2:adapter-rxjava:$retrofit2Version"
compile "com.squareup.okhttp3:okhttp:$okHttpVersion"
compile "com.squareup.dagger:dagger:$daggerVersion"
compile 'com.android.support.constraint:constraint-layout:1.1.2'
provided "com.squareup.dagger:dagger-compiler:$daggerVersion"
compile "com.jakewharton:butterknife:$butterKnifeVersion"
apt "com.jakewharton:butterknife-compiler:$butterKnifeVersion"
compile group: 'com.google.code.gson', name: 'gson', version: "$gsonVersion"
compile "com.squareup.retrofit2:converter-gson:$retrofit2Version"
compile "io.reactivex:rxjava:$rxJavaVersion"
compile "io.reactivex:rxandroid:$rxAndroidVersion"
compile "com.joanzapata.iconify:android-iconify-fontawesome:$iconifyVersion"
compile "com.joanzapata.iconify:android-iconify-typicons:$iconifyVersion"
compile "com.joanzapata.iconify:android-iconify-ionicons:$iconifyVersion"
compile "com.davemorrissey.labs:subsampling-scale-image-view:$subSamplingImageLibVersion"
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
compile 'com.jakewharton.timber:timber:4.3.0'
compile 'com.android.support:support-v4:24.2.1'
compile 'jp.wasabeef:recyclerview-animators:2.2.4'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.afollestad.material-dialogs:core:0.9.0.2'
compile 'com.squareup.picasso:picasso:2.5.0'
testCompile 'junit:junit:4.12'
compile files('libs/PhotoUtil.jar')
}
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\lenovo.Lenovo-pc\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
package com.lpdp.del.tenunapp;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.lpdp.del.tenunapp">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-feature
android:name="android.hardware.camera.any"
android:required="true" />
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
<application
android:name=".dependency.App"
android:allowBackup="true"
android:icon="@mipmap/jtenun_launcher_icon"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="com.lpdp.del.tenunapp.function.util.customglider.UnsafeOkHttpGlideModule"
android:value="GlideModule" />
<activity
android:name=".function.main.MainActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity android:name=".function.splash.SplashScreenActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".function.browse.BrowseTenunActivity"
android:parentActivityName=".function.main.MainActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".function.filter.FilterActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".function.upload.UploadActivity"
android:exported="true"
android:parentActivityName=".function.main.MainActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".function.detail.DetailTenunActivity"
android:label="@string/title_activity_detail_tenun"
android:parentActivityName=".function.browse.BrowseTenunActivity"
android:theme="@style/AppTheme.NoActionBar">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.lpdp.del.tenunapp.function.browse.BrowseTenunActivity" />
</activity>
<activity
android:name=".function.browse.BrowseMotifActivity"
android:label="Generate New Motif"
android:parentActivityName=".function.main.MainActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".function.detail.DetailMotifActivity"
android:label="@string/title_activity_detail_motif"
android:parentActivityName=".function.browse.BrowseMotifActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".function.imageproc.PreviewActivity"
android:theme="@style/AppTheme.FullScreen" />
<activity
android:name=".function.MiscActivity"
android:parentActivityName=".function.browse.BrowseMotifActivity" />
<activity android:name=".function.main.HomeActivity" />
<activity android:name=".function.grid.GridActivity" />
<activity
android:name=".function.generate.GenerateActivity"
android:label="@string/title_activity_generate"
android:parentActivityName=".function.browse.BrowseMotifActivity"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".function.kristik.KristikDigitalActivity"
android:label="Kristik Digital"
android:parentActivityName=".function.browse.BrowseMotifActivity" />
<activity
android:name=".function.kristik.KristikGambarAwalActivity"
android:parentActivityName=".function.browse.BrowseMotifActivity" />
<activity android:name=".function.classify.ClasificationActivity"></activity>
</application>
</manifest>
\ No newline at end of file
treshold_similarity: 50
interpolar_method: near
interpolar_power: 5
interpolar_radois: 2
block_size: 10
\ No newline at end of file
genImgpotonganBaliB1_1
treshold_similarity: 67
genImgpotonganBaliB1_2
interpolar_method: invdist
interpolar_power: 6
interpolar_radois: 3
genImgpotonganBaliB1_3
block_size: 10
\ No newline at end of file
genImgpotonganBaliC1_1
treshold_similarity: 80
genImgpotonganBaliC1_2
interpolar_method: none
interpolar_power: 7
interpolar_radois: 4
genImgpotonganBaliC1_3
block_size: 10
\ No newline at end of file
genImgpotonganBintangmaraturA_1
treshold_similarity: 73
genImgpotonganBintangmaraturA_2
interpolar_method: invdist
interpolar_power: 7
interpolar_radois: 2
genImgpotonganBintangmaraturA_3
block_size: 30
\ No newline at end of file
genImgpotonganFloresA1_1
treshold_similarity: 79
genImgpotonganFloresA1_2
interpolar_method: near
interpolar_power: 8
interpolar_radois: 3
genImgpotonganFloresA1_3
block_size: 25
\ No newline at end of file
genImgpotonganFloresB1_1
treshold_similarity: 77
genImgpotonganFloresB1_2
interpolar_method: none
interpolar_power: 9
interpolar_radois: 4
genImgpotonganFloresB1_3
block_size: 30
\ No newline at end of file
genImgpotonganFloresC1_1
treshold_similarity: 63
genImgpotonganFloresC1_2
interpolar_method: invdist
interpolar_power: 10
interpolar_radois: 2
genImgpotonganFloresC1_3
block_size: 15
\ No newline at end of file
genImgpotonganFloresD1_1
treshold_similarity: 54
genImgpotonganFloresD1_2
interpolar_method: none
interpolar_power: 9
interpolar_radois: 3
genImgpotonganFloresD1_3
block_size: 20
\ No newline at end of file
genImgpotonganHarungguanA_1
treshold_similarity: 59
genImgpotonganHarungguanA_2
interpolar_method: near
interpolar_power: 6
interpolar_radois: 4
genImgpotonganHarungguanA_3
block_size: 15
\ No newline at end of file
genImgpotonganRagiidupA_1
treshold_similarity: 55
genImgpotonganRagiidupA_2
interpolar_method: invdist
interpolar_power: 6
interpolar_radois: 2
genImgpotonganRagiidupA_3
block_size: 25
\ No newline at end of file
genImgpotonganRagiidupB_1
treshold_similarity: 66
genImgpotonganRagiidupB_2
interpolar_method: none
interpolar_power: 5
interpolar_radois: 4
genImgpotonganRagiidupB_3
block_size: 15
\ No newline at end of file
genImgpotonganSadumA_1
treshold_similarity: 71
genImgpotonganSadumA_2
interpolar_method: none
interpolar_power: 7
interpolar_radois: 3
genImgpotonganSadumA_3
block_size: 20
\ No newline at end of file
genImgpotonganSibolangA_1
treshold_similarity: 62
genImgpotonganSibolangA_2
interpolar_method: near
interpolar_power: 8
interpolar_radois: 2
genImgpotonganSibolangA_3
block_size: 10
\ No newline at end of file
genImgpotonganSitoluntuhoA_1
treshold_similarity: 52
genImgpotonganSitoluntuhoA_2
interpolar_method: invdist
interpolar_power: 9
interpolar_radois: 2
genImgpotonganSitoluntuhoA_3
block_size: 25
\ No newline at end of file
package com.lpdp.del.tenunapp.dependency;
import android.app.Application;
import android.content.Context;
import com.joanzapata.iconify.Iconify;
import com.joanzapata.iconify.fonts.FontAwesomeModule;
import com.joanzapata.iconify.fonts.IoniconsModule;
import com.joanzapata.iconify.fonts.TypiconsModule;
import com.lpdp.del.tenunapp.dependency.modules.AppModule;
import dagger.ObjectGraph;
import io.realm.Realm;
import io.realm.RealmConfiguration;
import timber.log.Timber;
/**
* Using this file must on behalf of Institut Teknologi Del & Piksel
*/
public class App extends Application {
private final static int SCHEMA_VERSION = 1;
private ObjectGraph injector;
@Override
public void onCreate() {
super.onCreate();
Realm.init(this);
//Timber for logging -> no pun intended
Timber.plant(new Timber.DebugTree());
// Configure default configuration for Realm
RealmConfiguration realmConfig = new RealmConfiguration.Builder()
.deleteRealmIfMigrationNeeded()
.schemaVersion(SCHEMA_VERSION)
.build();
Realm.setDefaultConfiguration(realmConfig);
//Iconify
Iconify
.with(new FontAwesomeModule())
.with(new TypiconsModule())
.with(new IoniconsModule());
injector = ObjectGraph.create(new AppModule(this));
}
public static App get(Context context) {
return (App) context.getApplicationContext();
}
public ObjectGraph getInjector() {
return injector;
}
}
package com.lpdp.del.tenunapp.dependency.models;
import com.google.gson.annotations.SerializedName;
import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
* Created by User on 24/10/2016.
*/
public class Algoritma extends RealmObject {
@PrimaryKey
private String id;
@SerializedName("nama_algoritma")
private String namaAlgoritma;
private String description;
private RealmList<AlgoritmaParameter> parameters;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getNamaAlgoritma() {
return namaAlgoritma;
}
public void setAlgoritma(String namaAlgoritma) {
this.namaAlgoritma = namaAlgoritma;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public RealmList<AlgoritmaParameter> getParameters() {
return parameters;
}
public void setParameters(RealmList<AlgoritmaParameter> parameters) {
this.parameters = parameters;
}
}
package com.lpdp.del.tenunapp.dependency.models;
import com.google.gson.annotations.SerializedName;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
* Using this file must on behalf of Institut Teknologi Del & Piksel
*/
public class AlgoritmaParameter extends RealmObject {
@PrimaryKey
private String id;
@SerializedName("id_algoritma")
private String idAlgoritma;
@SerializedName("nama_parameter")
private String namaParameter;
@SerializedName("type_algoritma")
private String type;
@SerializedName("min_val")
private String minValue;
@SerializedName("max_val")
private String maxValue;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getIdAlgoritma() {
return idAlgoritma;
}
public void setIdAlgoritma(String idAlgoritma) {
this.idAlgoritma = idAlgoritma;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getMinValue() {
return minValue;
}
public void setMinValue(String minValue) {
this.minValue = minValue;
}
public String getMaxValue() {
return maxValue;
}
public void setMaxValue(String maxValue) {
this.maxValue = maxValue;
}
public String getNamaParameter() {
return namaParameter;
}
public void setNamaParameter(String namaParameter) {
this.namaParameter = namaParameter;
}
}
package com.lpdp.del.tenunapp.dependency.models;
import android.graphics.Color;
import java.util.List;
/**
* Using this file must on behalf of Institut Teknologi Del & Piksel
*/
public class FilterRequestBody {
List<String> hexColor;
List<String> regionList;
List<String> typeOfTenun;
}
package com.lpdp.del.tenunapp.dependency.models;
import com.google.gson.annotations.SerializedName;
import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
public class Generate extends RealmObject {
@PrimaryKey
private String id;
@SerializedName("idMotif")
private String idMotif;
@SerializedName("generateFile")
private String generateFile;
@SerializedName("nama_generate")
private String namaGenerate;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getIdMotif() {
return idMotif;
}
public void setIdMotif(String idMotif) {
this.idMotif = idMotif;
}
public String getGenerateFile() {
return generateFile;
}
public void setGenerateFile(String generateFile) {
this.generateFile = generateFile;
}
public String getNamaGenerate() {
return namaGenerate;
}
public void setNamaGenerate(String namaGenerate) {
this.namaGenerate = namaGenerate;
}
}
package com.lpdp.del.tenunapp.dependency.models;
import com.google.gson.annotations.SerializedName;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
public class GenerateTenun extends RealmObject {
@PrimaryKey
private String id;
@SerializedName("idTenun")
private String idTenun;
@SerializedName("generateFile")
private String generateFile;
@SerializedName("nama_generate")
private String namaGenerate;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getIdTenun() {
return idTenun;
}
public void setIdTenun(String idMotif) {
this.idTenun = idMotif;
}
public String getGenerateFile() {
return generateFile;
}
public void setGenerateFile(String generateFile) {
this.generateFile = generateFile;
}
public String getNamaGenerate() {
return namaGenerate;
}
public void setNamaGenerate(String namaGenerate) {
this.namaGenerate = namaGenerate;
}
}
package com.lpdp.del.tenunapp.dependency.models;
import com.google.gson.annotations.SerializedName;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
public class Kristik extends RealmObject {
@PrimaryKey
private String id;
@SerializedName("sourceFile")
private String sourceFile;
@SerializedName("kristikFile")
private String kristikFile;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getSourceFile() {
return sourceFile;
}
public void setSourceFile(String sourceFile) {
this.sourceFile = sourceFile;
}
public String getKristikFile() {
return kristikFile;
}
public void setKristikFile(String kristikFile) {
this.kristikFile = kristikFile;
}
}
package com.lpdp.del.tenunapp.dependency.models;
import com.google.gson.annotations.SerializedName;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
* Using this file must on behalf of Institut Teknologi Del & Piksel
*/
public class MotifTenun extends RealmObject {
@PrimaryKey
@SerializedName("id")
private String id;
@SerializedName("id_tenun")
private String idTenun;
@SerializedName("nama_motif")
private String namaMotif;
@SerializedName("img_src")
private String imageMotif;
public String getIdTenun() {
return idTenun;
}
public void setIdTenun(String idTenun) {
this.idTenun = idTenun;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getNamaMotif() {
return namaMotif;
}
public void setNamaMotif(String namaMotif) {
this.namaMotif = namaMotif;
}
public String getImageMotif() {
return imageMotif;
}
public void setImageMotif(String imageMotif) {
this.imageMotif = imageMotif;
}
}
package com.lpdp.del.tenunapp.dependency.models;
import com.google.gson.annotations.SerializedName;
/**
* Using this file must on behalf of Institut Teknologi Del & Piksel
*/
public class Pagination {
@SerializedName("is_exist_next")
private boolean isExistNext;
@SerializedName("next_cursor")
private int nextCursor;
@SerializedName("size")
private int size;
public Pagination(){
this.isExistNext = true;
this.nextCursor = 0;
this.size = 20;
}
public boolean isExistNext() {
return this.isExistNext;
}
public void setExistNext(boolean isExistNext) {
this.isExistNext = isExistNext;
}
public int getNextCursor() {
return this.nextCursor;
}
public void setNextCursor(int nextCursor) {
this.nextCursor = nextCursor;
}
public int getSize() {
return this.size;
}
public void setSize(int size) {
this.size = size;
}
}
package com.lpdp.del.tenunapp.dependency.models;
import android.support.annotation.Nullable;
import com.google.gson.annotations.SerializedName;
/**
* Created by User on 18/10/2016.
*/
public class RequestBodyGenerateImg {
public static String ALGO_IMG_QUILTING = "img_quilting";
//public static String ALGO_IMG_WARPING = "img_warping";
public static String ALGO_NON_PARAMETRIC_SAMPLING = "non_parametric_sample";
//TODO : CEK THEN GO FOR IT (PUT ENUM IT)
private String sourceFile;
private String algoritma;
//private String algoritma2;
@SerializedName("Output Size")
@Nullable
private int outputSize;
@SerializedName("Output Shape")
@Nullable
private String outputShape;
@SerializedName("Sum of Matrix")
@Nullable
private int sumofMatrix;
@SerializedName("Color")
@Nullable
private String color;
public RequestBodyGenerateImg(String sourceFile) {
this.sourceFile = sourceFile;
this.algoritma = ALGO_IMG_QUILTING;
}
public RequestBodyGenerateImg(String sourceFile, String algoritma, int outputSize, int sumofMatrix, String color, String outputShape ) {
this.sourceFile = sourceFile;
this.algoritma = algoritma;
this.outputSize = outputSize;
this.sumofMatrix = sumofMatrix;
this.color = color;
this.outputShape = outputShape;
}
public String getSourceFile() {
return sourceFile;
}
public void setSourceFile(String sourceFile) {
this.sourceFile = sourceFile;
}
public String getAlgoritma() {
return algoritma;
}
public void setAlgoritma(String algoritma) {
this.algoritma = algoritma;
}
@Nullable
public int getOutputSize() {
return outputSize;
}
public void setOutputSize(@Nullable int outputSize) {
this.outputSize = outputSize;
}
@Nullable
public String getOutputShape() {
return outputShape;
}
public void setOutputShape(@Nullable String outputShape) {
this.outputShape = outputShape;
}
@Nullable
public int getSumofMatrix() {
return sumofMatrix;
}
public void setSumofMatrix(@Nullable int sumofMatrix) {
this.sumofMatrix = sumofMatrix;
}
@Nullable
public String getColor() {
return color;
}
public void setColor(@Nullable String color) {
this.color = color;
}
}
package com.lpdp.del.tenunapp.dependency.models;
import android.support.annotation.Nullable;
import com.google.gson.annotations.SerializedName;
/**
* Created by User on 18/10/2016.
*/
public class RequestBodyGenerateImg2 {
public static String ALGO_IMG_QUILTING = "img_quilting";
//public static String ALGO_IMG_WARPING = "img_warping";
public static String ALGO_NON_PARAMETRIC_SAMPLING = "img_nps";
//TODO : CEK THEN GO FOR IT (PUT ENUM IT)
@SerializedName("sourceFile")
private String sourceFile;
@SerializedName("algoritma")
private String algoritma;
//private String algoritma2;
@SerializedName("model")
private String model;
@SerializedName("warna")
private String warna;
@SerializedName("idMotif")
private String idMotif;
public RequestBodyGenerateImg2(String sourceFile) {
this.sourceFile = sourceFile;
this.algoritma = ALGO_IMG_QUILTING;
}
public RequestBodyGenerateImg2(String algoritma, String sourceFile, String model, String warna, String idMotif) {
this.sourceFile = sourceFile;
this.algoritma = algoritma;
this.model= model;
this.warna= warna;
this.idMotif= idMotif;
}
public String getIdMotif() {
return idMotif;
}
public void setIdMotif(String idMotif) {
this.idMotif = idMotif;
}
public String getSourceFile() {
return sourceFile;
}
public void setSourceFile(String sourceFile) {
this.sourceFile = sourceFile;
}
public String getAlgoritma() {
return algoritma;
}
public void setAlgoritma(String algoritma) {
this.algoritma = algoritma;
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model= model;
}
public String getWarna() {
return warna;
}
public void setWarna(String warna) {
this.warna= warna;
}
}
package com.lpdp.del.tenunapp.dependency.models;
import java.util.List;
public class ResponseGenerateFile {
private boolean success;
private String message;
private List<Generate> data;
public boolean isSuccess() {
return success;
}
public void setSuccess(boolean success) {
this.success = success;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public List<Generate> getData() {
return data;
}
public void setData(List<Generate> data) {
this.data = data;
}
}
package com.lpdp.del.tenunapp.dependency.models;
import java.util.List;
/**
* Created by User on 24/10/2016.
*/
public class ResponseGetAlgoritma {
private boolean success;
private String message;
private List<Algoritma> data;
public boolean isSuccess() {
return success;
}
public void setSuccess(boolean success) {
this.success = success;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public List<Algoritma> getData() {
return data;
}
public void setData(List<Algoritma> data) {
this.data = data;
}
}
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment