// Path: src/main/java/se/omegapoint/facepalm/domain/Image.java
// public class Image {
//     public final byte[] data;
// 
//     public Image(final byte[] data) {
//         this.data = notNull(data);
//     }
// }
// 
// Path: src/main/java/se/omegapoint/facepalm/domain/ImagePost.java
// public class ImagePost {
//     public final Long id;
//     public final Title title;
//     public final NumberOfPoints numPoints;
//     public final NumberOfComments numComments;
// 
//     public ImagePost(final Long id, final Title title, final NumberOfPoints points, final NumberOfComments numComments) {
//         this.id = notNull(id);
//         this.title = notNull(title);
//         this.numPoints = notNull(points);
//         this.numComments = notNull(numComments);
//     }
// }
// 
// Path: src/main/java/se/omegapoint/facepalm/domain/Title.java
// public class Title {
//     private static final int MAN_LENGTH = 100;
// 
//     public final String value;
// 
//     public Title(final String value) {
//         this.value = notBlank(value);
//         isTrue(this.value.length() < MAN_LENGTH, "Title can be maximum 100 characters");
//     }
// }


import se.omegapoint.facepalm.domain.Image;
import se.omegapoint.facepalm.domain.ImagePost;
import se.omegapoint.facepalm.domain.Title;
import java.util.List;
import java.util.Optional;
/*
 * Copyright 2016 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package se.omegapoint.facepalm.domain.repository;



public interface ImageRepository {
    List<ImagePost> findAll();

    Optional<ImagePost> findById(String id);

    void addImagePost(Title title, byte[] data);

// Path: src/main/java/se/omegapoint/facepalm/domain/Image.java
// public class Image {
//     public final byte[] data;
// 
//     public Image(final byte[] data) {
//         this.data = notNull(data);
//     }
// }
// 
// Path: src/main/java/se/omegapoint/facepalm/domain/ImagePost.java
// public class ImagePost {
//     public final Long id;
//     public final Title title;
//     public final NumberOfPoints numPoints;
//     public final NumberOfComments numComments;
// 
//     public ImagePost(final Long id, final Title title, final NumberOfPoints points, final NumberOfComments numComments) {
//         this.id = notNull(id);
//         this.title = notNull(title);
//         this.numPoints = notNull(points);
//         this.numComments = notNull(numComments);
//     }
// }
// 
// Path: src/main/java/se/omegapoint/facepalm/domain/Title.java
// public class Title {
//     private static final int MAN_LENGTH = 100;
// 
//     public final String value;
// 
//     public Title(final String value) {
//         this.value = notBlank(value);
//         isTrue(this.value.length() < MAN_LENGTH, "Title can be maximum 100 characters");
//     }
// }


// Path: src/main/java/se/omegapoint/facepalm/domain/repository/ImageRepository.java
import se.omegapoint.facepalm.domain.Image;
import se.omegapoint.facepalm.domain.ImagePost;
import se.omegapoint.facepalm.domain.Title;
import java.util.List;
import java.util.Optional;

/*
 * Copyright 2016 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package se.omegapoint.facepalm.domain.repository;



public interface ImageRepository {
    List<ImagePost> findAll();

    Optional<ImagePost> findById(String id);

    void addImagePost(Title title, byte[] data);

    Image findImageByPostId(Long id);