mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-04-03 07:14:28 +02:00
23 lines
574 B
Java
23 lines
574 B
Java
package com.danielstone.materialaboutlibrary.util;
|
|
|
|
import com.danielstone.materialaboutlibrary.R;
|
|
|
|
public enum OpenSourceLicense {
|
|
APACHE_2, MIT, GNU_GPL_3, BSD;
|
|
|
|
public int getResourceId() {
|
|
switch (this) {
|
|
case APACHE_2:
|
|
return R.string.license_apache2;
|
|
case MIT:
|
|
return R.string.license_mit;
|
|
case GNU_GPL_3:
|
|
return R.string.license_gpl;
|
|
case BSD:
|
|
return R.string.license_bsd;
|
|
default:
|
|
return -1;
|
|
}
|
|
}
|
|
}
|