// Path: app/src/main/java/com/example/offline/model/ModelConstants.java
// public class ModelConstants {
//     public static final String DB_NAME = "offlinedb";
//     public static final long DUMMY_PHOTO_ID = 1L;
// }


import com.example.offline.model.ModelConstants;
import io.reactivex.Completable;
package com.example.offline.domain;



public class AddCommentUseCase {
    private final LocalCommentRepository localCommentRepository;
    private final SyncCommentUseCase syncCommentUseCase;

    public AddCommentUseCase(LocalCommentRepository localCommentRepository, SyncCommentUseCase syncCommentUseCase) {
        this.localCommentRepository = localCommentRepository;
        this.syncCommentUseCase = syncCommentUseCase;
    }

    public Completable addComment(String commentText) {
// Path: app/src/main/java/com/example/offline/model/ModelConstants.java
// public class ModelConstants {
//     public static final String DB_NAME = "offlinedb";
//     public static final long DUMMY_PHOTO_ID = 1L;
// }


// Path: app/src/main/java/com/example/offline/domain/AddCommentUseCase.java
import com.example.offline.model.ModelConstants;
import io.reactivex.Completable;

package com.example.offline.domain;



public class AddCommentUseCase {
    private final LocalCommentRepository localCommentRepository;
    private final SyncCommentUseCase syncCommentUseCase;

    public AddCommentUseCase(LocalCommentRepository localCommentRepository, SyncCommentUseCase syncCommentUseCase) {
        this.localCommentRepository = localCommentRepository;
        this.syncCommentUseCase = syncCommentUseCase;
    }

    public Completable addComment(String commentText) {
        return localCommentRepository.add(ModelConstants.DUMMY_PHOTO_ID, commentText)