added wifi classification and initial class
This commit is contained in:
@@ -35,4 +35,8 @@ public final class EmailModel extends QRCodeModel<EmailEntity> {
|
||||
public EmailEntity getDetails () {
|
||||
return emailVerificationService.getEmailEntityByQRCodeId(data.getId());
|
||||
}
|
||||
@Override
|
||||
public String retrieveClassification() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -34,4 +34,8 @@ public final class PhoneModel extends QRCodeModel<PhoneEntity> {
|
||||
public PhoneEntity getDetails () {
|
||||
return phoneVerificationService.getPhoneEntityByQRCodeId(data.getId());
|
||||
}
|
||||
@Override
|
||||
public String retrieveClassification() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -10,4 +10,5 @@ public abstract class QRCodeModel<T>{
|
||||
|
||||
public abstract void setDetails();
|
||||
public abstract T getDetails();
|
||||
public abstract String retrieveClassification();
|
||||
}
|
||||
|
||||
@@ -34,4 +34,8 @@ public final class SMSModel extends QRCodeModel<SMSEntity> {
|
||||
public SMSEntity getDetails () {
|
||||
return smsVerificationService.getSMSEntityByQRCodeId(data.getId());
|
||||
}
|
||||
@Override
|
||||
public String retrieveClassification() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -34,4 +34,9 @@ public final class TextModel extends QRCodeModel<TextEntity> {
|
||||
public TextEntity getDetails () {
|
||||
return textVerificationService.getTextEntityByQRCodeId(data.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String retrieveClassification() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -44,4 +44,9 @@ public final class URLModel extends QRCodeModel<URLEntity> {
|
||||
public URLEntity getDetails () {
|
||||
return urlVerificationService.getURLEntityByQRCodeId(data.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String retrieveClassification() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,10 @@ public final class WifiModel extends QRCodeModel<WifiEntity> {
|
||||
@Override
|
||||
public void setDetails() {
|
||||
details = WifiEntity.builder().qrCodeId(data.getId()).build();
|
||||
|
||||
// Parse wifi string
|
||||
wifiVerificationService.parseWifiString(details, data.getContents());
|
||||
|
||||
// Insert into wifi table
|
||||
wifiVerificationService.insertDB(details);
|
||||
}
|
||||
@@ -33,4 +37,9 @@ public final class WifiModel extends QRCodeModel<WifiEntity> {
|
||||
public WifiEntity getDetails () {
|
||||
return wifiVerificationService.getWifiEntityByQRCodeId(data.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String retrieveClassification() {
|
||||
return wifiVerificationService.getClassification(details.getEncryption());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user