-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #507 from phuonghuynh/master
Update changes
- Loading branch information
Showing
32 changed files
with
559 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/com/techlooper/dto/JoiningRegistrantDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.techlooper.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* Created by phuonghqh on 1/29/16. | ||
*/ | ||
@Getter | ||
@Setter | ||
@Builder | ||
public class JoiningRegistrantDto { | ||
public enum Reason {UNMATCH_PASSCODE, INVALID_FBEMAIL, INVALID_INTERNAL_EMAIL, SINGLE_ACCOUNT} | ||
|
||
private Long countRegistrants; | ||
private boolean succeedJoin = false; | ||
private Reason reason; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/com/techlooper/mapper/ChallengeRegistrantMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.techlooper.mapper; | ||
|
||
import com.techlooper.entity.ChallengeEntity; | ||
import com.techlooper.entity.ChallengeRegistrantDto; | ||
import com.techlooper.entity.ChallengeRegistrantEntity; | ||
import org.mapstruct.Mapper; | ||
import org.mapstruct.Mapping; | ||
import org.mapstruct.MappingTarget; | ||
import org.mapstruct.Mappings; | ||
import org.mapstruct.factory.Mappers; | ||
import org.springframework.stereotype.Repository; | ||
|
||
/** | ||
* Created by phuonghqh on 2/1/16. | ||
*/ | ||
@Mapper | ||
@Repository | ||
public interface ChallengeRegistrantMapper { | ||
ChallengeRegistrantEntity fromDto(ChallengeRegistrantDto dto); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.techlooper.mapper; | ||
|
||
import com.techlooper.entity.ChallengeCriteria; | ||
import com.techlooper.entity.ChallengeRegistrantCriteria; | ||
import org.mapstruct.Mapper; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.Set; | ||
|
||
/** | ||
* Created by phuonghqh on 2/1/16. | ||
*/ | ||
@Mapper | ||
@Repository | ||
public interface CriteriaMapper { | ||
ChallengeRegistrantCriteria fromChallenge(ChallengeCriteria criteria); | ||
Set<ChallengeRegistrantCriteria> fromChallenge(Set<ChallengeCriteria> criteria); | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/com/techlooper/model/JobSeekerChallengeStats.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.techlooper.model; | ||
|
||
/** | ||
* Created by NguyenDangKhoa on 1/29/16. | ||
*/ | ||
public class JobSeekerChallengeStats { | ||
|
||
private JobSeekerPhaseEnum phase; | ||
|
||
private Integer count; | ||
|
||
public JobSeekerChallengeStats(JobSeekerPhaseEnum phase, Integer count) { | ||
this.phase = phase; | ||
this.count = count; | ||
} | ||
|
||
public JobSeekerPhaseEnum getPhase() { | ||
return phase; | ||
} | ||
|
||
public void setPhase(JobSeekerPhaseEnum phase) { | ||
this.phase = phase; | ||
} | ||
|
||
public Integer getCount() { | ||
return count; | ||
} | ||
|
||
public void setCount(Integer count) { | ||
this.count = count; | ||
} | ||
} |
Oops, something went wrong.